Skip to content

Commit ea5c6e9

Browse files
dshin-mozmoz-wptsync-bot
authored andcommitted
Handle no time being set when switching into document timeline from scroll timeline.
Differential Revision: https://phabricator.services.mozilla.com/D319811 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=2047032 gecko-commit: 791210cabea01dc93746cec7dd2b2fccef6e7f93 gecko-commit-git: c1f1dbc44ecfb9862621fb754d075be579c195c1 gecko-reviewers: layout-scroll-driven-animation-reviewers, boris
1 parent d1e7ae9 commit ea5c6e9

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=2047032">
3+
<div id=target>
4+
<div id=dut></div>
5+
</div>
6+
<script>
7+
document.addEventListener("DOMContentLoaded", () => {
8+
const rect = dut;
9+
target.remove();
10+
const st = new ScrollTimeline({});
11+
const ani = rect.animate([{}], {timeline: st});
12+
ani.timeline = document.timeline;
13+
})
14+
</script>

0 commit comments

Comments
 (0)