mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
Update web-platform-tests to revision 614fd870e47c9f4e76291e5af4e32b676c0acac0
This commit is contained in:
parent
063bd7ac19
commit
b49ffaa0f7
137 changed files with 4756 additions and 721 deletions
|
@ -0,0 +1,19 @@
|
|||
<!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({timeRange: 100});
|
||||
assert_equals(timeline.scrollSource, null);
|
||||
assert_equals(timeline.currentTime, null);
|
||||
}, 'The scrollSource can be null if the document.scrollingElement does not exist');
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue