tor-browser

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

counter-reset-inside-display-contents.html (705B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Lists: counter-reset on child of display:contents</title>
      4 <link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org">
      5 <link rel="help" href="https://drafts.csswg.org/css-lists/#counters-without-boxes">
      6 <link rel="match" href="counter-7-ref.html">
      7 <style>
      8  .inc { counter-increment: x }
      9  .reset-6 { counter-reset: x 6 }
     10  .reset-666 { counter-reset: x 6 }
     11  .contents { display: contents }
     12  .result::before { content: counter(x) }
     13 </style>
     14 <p>You should see the number 7 below.</p>
     15 <div>
     16  <span class="reset-6"></span>
     17  <span class="contents">
     18    <span class="reset-666"></span>
     19  </span>
     20  <span class="inc result"></span>
     21 </div>