tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

constructor-no-document.html (638B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>ScrollTimeline constructor - no document</title>
      4 <link rel="help" href="https://wicg.github.io/scroll-animations/#scrolltimeline-interface">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 
      8 <script>
      9 'use strict';
     10 
     11 test(function() {
     12  document.documentElement.remove();
     13  assert_equals(document.scrollingElement, null);
     14 
     15  const timeline = new ScrollTimeline();
     16  assert_equals(timeline.source, null);
     17  assert_equals(timeline.currentTime, null);
     18 }, 'The source can be null if the document.scrollingElement does not exist');
     19 </script>