tor-browser

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

counter-slot-order-ref.html (589B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>CSS counter order with Shadow DOM and SLOT</title>
      5    <link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com">
      6    <link rel="help" href="https://www.w3.org/TR/css-lists-3/#inheriting-counters">
      7    <style>
      8      .counted {
      9        counter-increment: section;
     10      }
     11 
     12      .counted::before {
     13        content: "C=" counter(section) " ";
     14      }
     15    </style>
     16  </head>
     17 
     18  <body>
     19 
     20  <div>
     21    <div class="counted">One</div>
     22    <div class="counted">Two</div>
     23    <div class="counted">Three</div>
     24  </div>
     25 
     26  </body>
     27 </html>