tor-browser

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

nth-child-of-id-prefix.html (683B)


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