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/scroll-and-view-timeline-same-name-same-element-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Scroll and view timelines with the same name on the same element matched from outside its hierarchy should not crash</title>
<style>
@keyframes anim {
from { opacity: 0; }
to { opacity: 1; }
}
#source {
scroll-timeline-name: --t;
view-timeline-name: --t;
}
#target {
animation: anim 1s linear;
animation-timeline: --t;
}
</style>
<div id="source"></div>
<div id="target"></div>