t120403-visibility-00-c-test.html (800B)
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: Counter properties on 'visibility: hidden' elements</title> 5 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#q9"/> 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 <style type="text/css"> 10 11 div { counter-reset: c } 12 #one { visibility: hidden; counter-increment: c } 13 #two:before { content: counter(c) } 14 15 </style> 16 </head> 17 <body> 18 19 20 <div><span id="one"></span><span id="two"></span></div> 21 22 </body> 23 </html>