tor-browser

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

spin-by-blocking-style-sheet.html (557B)


      1 <!DOCTYPE html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <script src="resources/utils.js"></script>
      5 
      6 <input id="first" autofocus>
      7 <input id="second" autofocus>
      8 
      9 <link rel="stylesheet" href="resources/erase-first.css?pipe=trickle(d1)">
     10 
     11 <script>
     12 'use strict';
     13 
     14 promise_test(async () => {
     15  await waitForLoad(window);
     16  await waitForAnimationFrame();
     17  assert_equals(document.activeElement.id, 'second');
     18 }, 'Script-blocking style sheet should pause flushing autofocus candidates.');
     19 </script>