tor-browser

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

stylesheet-not-removed-until-next-stylesheet-loads.html (1029B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Dom Farolino" href="mailto:dom@chromium.org">
      3 <link rel="help" href="https://html.spec.whatwg.org/multipage/links.html#link-type-stylesheet">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <link href="style.css" rel="stylesheet" id="style_test">
      7 <script>
      8  test(function() {
      9    assert_true(document.styleSheets.length === 1 &&
     10                document.styleSheets[0].href.includes("style.css"),
     11                "The style sheet 'style.css' must be available to scripts");
     12 
     13    style_test.href = "resources/neutral.css?pipe=trickle(d1)";
     14 
     15    assert_true(document.styleSheets.length === 1 &&
     16                document.styleSheets[0].href.includes("style.css"),
     17                "The style sheet 'style.css' must remain accessible to " +
     18                "scripts until its replacement has finished loading");
     19  }, "Check that a style sheet loaded by a <link> is available until its successor is loaded");
     20 </script>
     21 </head>
     22 </html>