tor-browser

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

nth-last-child-of-sibling.html (825B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSS Selectors Invalidation: :nth-last-child(... of sibling)</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-last-child-of-sibling-ref.html">
      7 <link rel="help" href="https://drafts.csswg.org/selectors-4/#child-index">
      8 <style>
      9  p:nth-last-child(even of .a + .b) {
     10    color: green;
     11  }
     12 </style>
     13 <div>
     14  <p class="a">Ignored</p>
     15  <p class="b">Not ignored</p>
     16  <p class="a">Ignored</p>
     17  <p class="b">Not ignored</p>
     18  <p class="a">Ignored</p>
     19  <p class="b" id="toggler">Selectively ignored</p>
     20  <p class="a">Ignored</p>
     21  <p>Ignored</p>
     22 </div>
     23 <script>
     24  document.documentElement.offsetTop;
     25  toggler.classList.toggle("b");
     26 </script>