t1202-counters-06-b-test.html (1103B)
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 2.1 Test Suite: content: counters(c, ".", decimal-leading-zero)</title> 5 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/> 8 <meta http-equiv="Content-Style-Type" content="text/css"/> 9 <style type="text/css"> 10 11 body, #test span:first-child { counter-reset: c; } 12 p, #test span { counter-increment: c; } 13 #test span:before { content: counters(c, ".", decimal-leading-zero); } 14 15 </style> 16 </head> 17 <body> 18 19 <p></p> 20 21 <div id="test"> 22 <span></span> 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 style="counter-reset: c 98"></span> 35 <span></span> 36 <span></span> 37 </div> 38 39 40 </body> 41 </html>