counters-multi-000.xht (935B)
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: Multiple resets for same counter</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#counters"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/> 9 <link rel="match" href="counters-multi-000-ref.html" /> 10 <style type="text/css"> 11 12 body { white-space: nowrap; } 13 14 15 #one:before { counter-reset: one 1; content: counter(one) } 16 #two:before { counter-reset: two 7 two 2; content: counter(two) } 17 18 </style> 19 </head> 20 <body> 21 22 <p>The following should be identical:</p> 23 24 <div><span id="one"></span><span id="two"></span></div> 25 <div>12</div> 26 27 </body> 28 </html>