https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e0169332c3bf5d25aafa38786026a0a86ae4a55a authored by Chris Harrelson on 24 December 2018, 21:55:55 UTC
Move visual overflow computation into the descendant-dependent tree walk.
Tip revision: e016933
constructor-no-document.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({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>
back to top