tor-browser

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

content-counter-004.xht (1098B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3  <head>
      4   <title>CSS Test: content: counter(c, square)</title>
      5   <link rel="author" title="L. David Baron" href="https://dbaron.org/"/>
      6   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/>
      7   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/>
      8   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/>
      9   <link rel="match" href="content-counter-004-ref.xht"/>
     10   <style type="text/css">
     11 
     12   #test { counter-reset: c; color: blue; }
     13   #test span { display: block; counter-increment: c; }
     14   #test span:before { content: counter(c, square); }
     15 
     16   </style>
     17  </head>
     18  <body>
     19 
     20  <p>Test passes if there are 12 blue filled squares below.</p>
     21 
     22  <div id="test">
     23    <span></span>
     24    <span></span>
     25    <span></span>
     26    <span></span>
     27    <span></span>
     28    <span></span>
     29    <span></span>
     30    <span></span>
     31    <span></span>
     32    <span></span>
     33    <span></span>
     34    <span></span>
     35  </div>
     36  </body>
     37 </html>