counter-reset-054.xht (1140B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Counter-reset with a value of inherit</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-counter-reset" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters" /> 8 <meta name="assert" content="The counter-reset with the value inherit specified." /> 9 <style type="text/css"> 10 #wrapper 11 { 12 counter-reset: ident 5; 13 } 14 #test 15 { 16 counter-reset: inherit; 17 } 18 div:before 19 { 20 font-size: 30px; 21 content: counter(ident); 22 } 23 </style> 24 </head> 25 <body> 26 <p>Test passes if the numbers '5 5' appear below in the same order.</p> 27 <div id="wrapper"> 28 <div id="test"></div> 29 </div> 30 </body> 31 </html>