Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<head>
<title>CSS 2.1 Test Suite: content: counters(c, ".", decimal-leading-zero)</title>
<meta http-equiv="Content-Style-Type" content="text/css"/>
<style type="text/css">
body, #test span:first-child { counter-reset: c; }
p, #test span { counter-increment: c; }
#test span:before { content: counters(c, ".", decimal-leading-zero); }
</style>
</head>
<body>
<p></p>
<div id="test">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span style="counter-reset: c 98"></span>
<span></span>
<span></span>
</div>
</body>
</html>