tor-browser

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

ttwf-cssom-document-extension.html (1195B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSSOM - Extensions to the Document Interface: StyleSheetList length is 0 when no sheets loaded</title>
      5    <link rel="author" title="Jesse Bounds" href="mailto:jesse@codeforamerica.org">
      6    <link rel="reviewer" title="Ms2ger" href="mailto:ms2ger@gmail.com"> <!-- 2012-06-17 -->
      7    <link rel="help" href="http://www.w3.org/TR/cssom-1/#extensions-to-the-document-interface">
      8    <link rel="help" href="http://www.w3.org/TR/cssom-1/#the-stylesheetlist-interface">
      9    <meta name="flags" content="dom">
     10    <meta name="assert" content="The styleSheets attribute must return a StyleSheetList sequence representing the document style sheets.">
     11    <script src="/resources/testharness.js"></script>
     12    <script src="/resources/testharnessreport.js"></script>
     13 </head>
     14 <body>
     15    <div id="log"></div>
     16    <script>
     17        // Get the Document's styleSheets attribute
     18        var styleSheets = document.styleSheets;
     19        // Verify that the styleSheets list length is 0 because no stylesheets have been loaded
     20        test(function() {
     21          assert_equals(styleSheets.length, 0, "styleSheets.length is incorrect:");
     22        })
     23    </script>
     24 </body>
     25 </html>