tor-browser

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

test_constructable_stylesheets_chrome_only_rules.html (486B)


      1 <!DOCTYPE HTML>
      2 <meta charset="utf-8">
      3 <title>Test for chrome-only rules in constructable stylesheets</title>
      4 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
      5 <script>
      6  add_task(async function chrome_rules_constructable_stylesheets() {
      7    let sheet = new CSSStyleSheet();
      8    sheet.replaceSync(".foo { -moz-default-appearance: none }");
      9    is(sheet.cssRules[0].style.length, 1, "Should parse chrome-only property in chrome document");
     10  });
     11 </script>