tor-browser

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

counters-scope-003.html (735B)


      1 <!doctype html>
      2 <title>CSS Lists and Counters: counters scope</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-lists/#inheriting-counters">
      4 <link rel="match" href="counters-scope-003-ref.html">
      5 <meta name="assert" content="counters are not inherited from the previous sibling, when can be inherited from the ancestor">
      6 <style type="text/css">
      7 body, span#reset:before { counter-reset: c 0; }
      8 span::before { counter-increment: c 1; content: "B" counters(c,".") "-" }
      9 span::after  { counter-increment: c 1; content: "A" counters(c,".") "-" }
     10 </style>
     11 <p>The following two lines should be the same:</p>
     12 <div>
     13  <span>
     14    <span id="reset">
     15      <span></span>
     16    </span>
     17  </span>
     18 </div>
     19 <div>B1- B1.1- B2-A3- A4- A5-</div>