tor-browser

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

non-parser-created-doc.html (720B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8">
      5    <title>CSS API on style element in non-parser-created document</title>
      6    <script src="/resources/testharness.js"></script>
      7    <script src="/resources/testharnessreport.js"></script>
      8    <link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=1991800">
      9  </head>
     10  <body>
     11    <script>
     12      test(function() {
     13        let doc = document.implementation.createHTMLDocument("");
     14        let style = doc.createElement("style");
     15        doc.head.appendChild(style)
     16        assert_true(!!style.sheet, "The style element should have the sheet property.");
     17      }, "CSS API should work on non-parser-created documents");
     18    </script>
     19  </body>
     20 </html>