tor-browser

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

counter-increment-inside-display-contents.html (663B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Lists: counter-increment 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  .contents { display: contents }
     11  .result::before { content: counter(x) }
     12 </style>
     13 <p>You should see the number 7 below.</p>
     14 <div>
     15  <span class="reset-6"></span>
     16  <span class="contents">
     17    <span class="inc"></span>
     18  </span>
     19  <span class="result"></span>
     20 </div>