blob: 47b0cd6e751fe8c2282ce8c44746fa01d0340b30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#basic-shape-interpolation">
<link rel="match" href="clip-path-animation-custom-timing-function-ref.html">
<style>
.green {
background-color: green;
width: 200px;
height: 200px;
clip-path: inset(45%);
transition-property: clip-path;
transition-duration: 10000000s;
transition-timing-function: cubic-bezier(0, 9, 1, 9);
transition-delay: -5220715s;
}
</style>
<script src="/common/reftest-wait.js"></script>
<body>
<div class="green" id="target"></div>
<script>
function update() {
document.getElementById('target').style.clipPath = "inset(40%)";
requestAnimationFrame(() => {
takeScreenshot();
});
}
requestAnimationFrame(function () {
requestAnimationFrame(update);
});
</script>
</body>
</html>
|