tor-browser

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

content-counters-013.xht (1169B)


      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: counters(c, ".", upper-latin)</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   <style type="text/css">
     10 
     11   body { white-space: nowrap; }
     12 
     13 
     14   body, #test { counter-reset: c; }
     15   p, #test span { counter-increment: c; }
     16   #test span:before { content: counters(c, ".", upper-latin); }
     17 
     18   </style>
     19  </head>
     20  <body>
     21 
     22  <p>The following two lines should look the same:</p>
     23 
     24  <div id="test">
     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    <span></span>
     36    <span></span>
     37  </div>
     38 
     39  <div>
     40    A.A
     41    A.B
     42    A.C
     43    A.D
     44    A.E
     45    A.F
     46    A.G
     47    A.H
     48    A.I
     49    A.J
     50    A.K
     51    A.L
     52  </div>
     53 
     54  </body>
     55 </html>