Revision control

1
<div style="position: absolute; top: 0; left: 0; width: 100px; height: 100px; background-color: black;"></div>
2
<script>
3
4
if (window.testRunner)
5
testRunner.waitUntilDone();
6
7
const animation = document.querySelector("div").animate([
8
{ opacity: 0 },
9
{ opacity: 0.5, offset: 0.001 },
10
{ opacity: 0.5 }
11
], 1000);
12
13
if (window.testRunner) {
14
animation.ready.then(() => {
15
setTimeout(() => testRunner.notifyDone(), 100);
16
});
17
}
18
19
</script>