counter-ua-limits-01.html (846B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>css-counter-styles-3 Test Suite: content: counter(c)</title> 5 <!-- 6 NOTE: This test cannot be contributed to the test suite because 7 it presumes a 4-byte unsigned integer, which is not required by 8 the spec. 9 10 However, it tests the rules for what happens at the UA-specific 11 limit, which are required by the spec. 12 --> 13 <link rel="help" href="http://dev.w3.org/csswg/css-counter-styles-3/#counter-style-range"/> 14 <link rel="help" href="http://krijnhoetmer.nl/irc-logs/css/20130205#l-1590"/> 15 <style type="text/css"> 16 17 #test { counter-reset: c 2147483635; } 18 #test span { counter-increment: c 5; } 19 #test span:before { content: counter(c); } 20 21 </style> 22 </head> 23 <body> 24 25 <div id="test"> 26 <span></span> 27 <span></span> 28 <span></span> 29 <span></span> 30 </div> 31 32 </body> 33 </html>