Skip to content

Commit db01946

Browse files
authored
1 parent ef936be commit db01946

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<title>This test passes if it does not crash</title>
3+
<link rel="help" src="https://drafts.csswg.org/scroll-animations-1/">
4+
<script src="/web-animations/testcommon.js"></script>
5+
<body>
6+
7+
<script>
8+
9+
(async function() {
10+
document.body.style.height = '4000px';
11+
12+
const target = document.body.appendChild(document.createElement('div'));
13+
target.style.cssText = 'width:100px; height:100px; background:black;';
14+
15+
const timeline = new ScrollTimeline({ source: document.documentElement });
16+
const animation = target.animate([{ opacity: 0 }], { timeline });
17+
18+
await animation.ready;
19+
animation.effect.target = null;
20+
})();
21+
</script>

0 commit comments

Comments
 (0)