Files
sousa-gecko/testing/web-platform/tests/scroll-animations/crashtests/effect-target-set-to-null.html
T
Antoine Quint 2adbb7e44d Bug 2032099 [wpt PR 59209] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=312263, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=312263 (#59209)
--

wpt-commits: db01946c632e4e2b5257c291e061f0595a29878c
wpt-pr: 59209
2026-04-23 10:13:43 +00:00

22 lines
657 B
HTML

<!DOCTYPE html>
<title>This test passes if it does not crash</title>
<link rel="help" src="https://drafts.csswg.org/scroll-animations-1/">
<script src="/web-animations/testcommon.js"></script>
<body>
<script>
(async function() {
document.body.style.height = '4000px';
const target = document.body.appendChild(document.createElement('div'));
target.style.cssText = 'width:100px; height:100px; background:black;';
const timeline = new ScrollTimeline({ source: document.documentElement });
const animation = target.animate([{ opacity: 0 }], { timeline });
await animation.ready;
animation.effect.target = null;
})();
</script>