tor-browser

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

150-import-xhtml.xhtml (715B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4  <title>Stylesheet in XHTML BODY with @import blocking scripts</title>
      5  <script src="/resources/testharness.js"></script>
      6  <script src="/resources/testharnessreport.js"></script>
      7  <script src="testlib/testlib.js"></script>
      8 </head>
      9 <body>
     10  <div id="log">FAILED (This TC requires JavaScript enabled)</div>
     11  <div id="test">Test</div>
     12  <!-- this stylesheet blocks scripts -->
     13  <link rel="stylesheet" href="css/import.css?pipe=trickle(d2)" />
     14  <script>
     15    test(function() {
     16      assert_equals(getComputedStyle(document.getElementById("test")).position,
     17                    "fixed");
     18    });
     19  </script>
     20 </body>
     21 </html>