tor-browser

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

revert-val-004.html (604B)


      1 <!DOCTYPE html>
      2 <title>CSS Cascade: using 'revert' with the 'all' property</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-cascade/#default">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <style>
      7  div {
      8    display: inline;
      9  }
     10  .revert {
     11    all: revert;
     12  }
     13 </style>
     14 <div id=div></div>
     15 <script>
     16  test(function() {
     17    let cs = getComputedStyle(div);
     18    assert_equals(cs.display, 'inline');
     19    div.className = 'revert';
     20    assert_equals(cs.display, 'block');
     21  }, 'The revert keyword works with the all property');
     22 </script>