tor-browser

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

cssstyledeclaration-csstext-important.html (589B)


      1 <title>CSSOM test: setting a property with cssText and !important</title>
      2 <link rel="help" href="https://drafts.csswg.org/cssom-1/#dom-cssstyledeclaration-csstext">
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id="box"></div>
      6 <script>
      7  var style = document.getElementById('box').style;
      8  test(function(){
      9      style.cssText = "padding: 10px !important; padding-left: 20px;";
     10      assert_equals(style.getPropertyValue("padding-left"), "10px");
     11  }, "padding-left should be taken from the !important property");
     12 </script>