We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef936be commit db01946Copy full SHA for db01946
1 file changed
scroll-animations/crashtests/effect-target-set-to-null.html
@@ -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