tor-browser

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

css-style-attribute-modifications.html (630B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:ecobos@igalia.com">
      3 <link rel="help" href="https://drafts.csswg.org/cssom/#the-elementcssinlinestyle-interface">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <div id="test" style="color: red"></div>
      7 <script>
      8 test(function() {
      9  var el = document.getElementById("test");
     10  el.style.color = "";
     11  assert_true(el.hasAttribute("style"));
     12 
     13  el.removeAttribute("style");
     14  assert_false(el.hasAttribute("style"));
     15 }, "Mutating the style declaration doesn't remove the style attribute");
     16 </script>