tor-browser

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

transitive-style-invalidation.html (330B)


      1 <!doctype html>
      2 <style>
      3 .foo > div::before {
      4  display: block;
      5  width: 100px;
      6  height: 100px;
      7  background: red;
      8  content: "";
      9 }
     10 .foo.bar > div::before {
     11  background: green;
     12 }
     13 </style>
     14 <div class="foo">
     15  <div>
     16  </div>
     17 </div>
     18 <script>
     19 onload = function() {
     20  document.querySelector('.foo').className = 'foo bar';
     21 }
     22 </script>