tor-browser

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

counter-reset-increment-set-display-none.html (763B)


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