tor-browser

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

nth-last-child-containing-ancestor.html (696B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Selectors Invalidation: :nth-last-child(... of S) with ancestor in S</title>
      4 <link rel="author" title="Zach Hoffman" href="mailto:zach@zrhoffman.net">
      5 <link rel="author" title="Steinar H. Gunderson" href="mailto:sesse@chromium.org">
      6 <link rel="match" href="nth-child-containing-ancestor-ref.html">
      7 <link rel="help" href="https://drafts.csswg.org/selectors-4/#child-index">
      8 <style>
      9  div:nth-last-child(odd of .a .b) {
     10    color: green;
     11  }
     12 </style>
     13 <div id="toggler">
     14  <div>
     15    <div>
     16      <div class="b">Should be green</div>
     17    </div>
     18  </div>
     19 </div>
     20 <script>
     21  document.documentElement.offsetTop;
     22  toggler.classList.toggle("a");
     23 </script>