tor-browser

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

parser-inserted-stylesheet-link.html (749B)


      1 <!doctype html>
      2 <title>Parser-inserted stylesheet links are implicitly render-blocking</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="support/test-render-blocking.js"></script>
      6 <script>
      7 // Test case must be set up before the stylesheet, because the stylesheet is
      8 // script-blocking, which means we can't set it up while the stylesheet is
      9 // loading.
     10 test_render_blocking(() => {
     11  let color = getComputedStyle(document.querySelector('.target')).color;
     12  assert_equals(color, 'rgb(255, 0, 0)');
     13 }, 'Render-blocking stylesheet is applied');
     14 </script>
     15 <link rel="stylesheet" href="support/target-red.css?pipe=trickle(d1)">
     16 <div class="target">
     17  This should be red
     18 </div>