tor-browser

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

nth-last-child-of-class-prefix.html (757B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8" />
      3 <title>CSS Selectors Invalidation: :nth-last-child(... of class prefix)</title>
      4 <link rel="author" title="Zach Hoffman" href="mailto:zach@zrhoffman.net">
      5 <link rel="match" href="nth-last-child-of-class-ref.html">
      6 <link rel="help" href="https://drafts.csswg.org/selectors-4/#child-index">
      7 <style>
      8  p:nth-last-child(even of [class^=t]) {
      9    color: green;
     10  }
     11 </style>
     12 <div>
     13  <p>Ignored</p>
     14  <p class="t5">Not ignored</p>
     15  <p class="t4">Not ignored</p>
     16  <p class="t3">Not ignored</p>
     17  <p id="toggler" class="t2">Selectively ignored</p>
     18  <p class="t1">Not ignored</p>
     19  <p>Ignored</p>
     20  <p>Ignored</p>
     21 </div>
     22 <script>
     23  document.documentElement.offsetTop;
     24  toggler.setAttribute("class", "new-class");
     25 </script>