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
22 lines
657 B
HTML
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>
|