tor-browser

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

pseudo-element-remove-update.html (557B)


      1 <!DOCTYPE html>
      2 <title>CSS Lists: counters updated when element with counter operation on its pseudo element is removed</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-lists/#inheriting-counters">
      4 <link rel="match" href="pseudo-element-remove-update-ref.html">
      5 <style>
      6 body {
      7  counter-reset: myCounter;
      8 }
      9 div::before {
     10  content: counter(myCounter);
     11  counter-increment: myCounter;
     12 }
     13 </style>
     14 <body>
     15 <div>test</div>
     16 <div id="target">test</div>
     17 <div>test</div>
     18 <script>
     19  document.documentElement.offsetTop;
     20  target.remove();
     21 </script>
     22 </body>