Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /scroll-animations/crashtests/change-timeline-from-finite-to-monotonic-crash-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<div id=target>
<div id=dut></div>
</div>
<script>
document.addEventListener("DOMContentLoaded", () => {
const rect = dut;
target.remove();
const st = new ScrollTimeline({});
const ani = rect.animate([{}], {timeline: st});
ani.timeline = document.timeline;
})
</script>