tor-browser

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

nth-child-of-in-ancestor.html (763B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8" />
      3 <title>CSS Selectors Invalidation: :nth-child(... of class) as ancestor</title>
      4 <link rel="author" title="Steinar H. Gunderson" href="sesse@chromium.org">
      5 <link rel="match" href="nth-child-of-in-ancestor-ref.html">
      6 <link rel="help" href="https://drafts.csswg.org/selectors-4/#child-index">
      7 <style>
      8  p:nth-child(odd of .c) span {
      9    color: green;
     10  }
     11 </style>
     12 <div>
     13  <p class="c">Not <span>ignored</span></p>
     14  <p class="c" id="toggler">Selectively <span>ignored<span></p>
     15  <p class="c">Not <span>ignored</span></p>
     16  <p class="c">Not <span>ignored</span></p>
     17  <p class="c">Not <span>ignored</span></p>
     18  <p>Ignored</p>
     19 </div>
     20 <script>
     21  document.documentElement.offsetTop;
     22  toggler.classList.toggle("c");
     23 </script>