1
0
Fork 0
firefox/testing/web-platform/tests/scroll-animations/scroll-timelines/constructor-no-document.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

19 lines
638 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>ScrollTimeline constructor - no document</title>
<link rel="help" href="https://wicg.github.io/scroll-animations/#scrolltimeline-interface">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
'use strict';
test(function() {
document.documentElement.remove();
assert_equals(document.scrollingElement, null);
const timeline = new ScrollTimeline();
assert_equals(timeline.source, null);
assert_equals(timeline.currentTime, null);
}, 'The source can be null if the document.scrollingElement does not exist');
</script>