tor-browser

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

unset-value-storage.html (787B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>Storage of "unset" value</title>
      4 <meta name="author" title="Xidorn Quan" href="https://www.upsuper.org">
      5 <link rel="help" href="https://www.w3.org/TR/css-cascade-3/#inherit-initial"/>
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <style>
      9  div {
     10    color: unset;
     11    border: unset;
     12  }
     13 </style>
     14 <body>
     15  <div id="log"></div>
     16  <script>
     17    test(function() {
     18      let properties = ["color", "border", "border-left", "border-color", "border-right-style"];
     19      let style = document.styleSheets[0].cssRules[0].style;
     20      for (let prop of properties) {
     21        assert_equals(style.getPropertyValue(prop), "unset", `${prop} is expected to be "unset"`);
     22      }
     23    });
     24  </script>