t1204-multiple-01-c-test.html (788B)
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: Multiple increments and resets</title> 5 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/> 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 <style type="text/css"> 9 10 body { counter-reset: one 7 two -2; } 11 #one:before { counter-increment: one -6; content: counter(one) } 12 #two:before { counter-increment: dummy two 7 two two -4 silly 7; content: counter(two) } 13 14 </style> 15 </head> 16 <body> 17 18 19 <div><span id="one"></span><span id="two"></span></div> 20 21 </body> 22 </html>