Files
tubestation/testing/web-platform/tests/scroll-animations/null-scroll-source-crash.html
moz-wptsync-bot 401bb9e0dd Bug 1664225 - [wpt-sync] Update web-platform-tests to 55e3f8d27d6be17fa75bebe426c39cc51b3b26d4, a=testonly, r=karlcow
A bug in the wptsync caused us to miss some pushes during recent
updates. This commit copies the head of wpt at the specified revision
over and re-applies local patches that weren't in that revision. That
means we should be able to resume normal syncs after fixing the bug.

wpt-head: 55e3f8d27d6be17fa75bebe426c39cc51b3b26d4
wpt-type: landing

Differential Revision: https://phabricator.services.mozilla.com/D90823
2020-09-21 12:53:13 +00:00

26 lines
800 B
HTML

<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1088319">
<meta name="assert" content="Playing animation with null scroll source should not crash.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
html {
overflow: scroll;
}
body {
overflow: scroll;
}
</style>
<div id="box"></div>
<script>
test(() => {
const effect = new KeyframeEffect(box, []);
const timeline = new ScrollTimeline({
timeRange: 1000
});
const animation = new Animation(effect, timeline);
assert_equals(document.scrollingElement, null,
"This test relies on scrolling element being nil");
animation.play();
}, "Playing animation with null scroll source should not crash");
</script>