1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: content: counters() error cases</title>
5 <link rel="author" title="L. David Baron" href="http://dbaron.org/">
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 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles">
9 <meta name="flags" content="invalid">
10 <style type="text/css">
11
12 body { white-space: nowrap; }
13
14
15 body, #test { counter-reset: c 0 f 1000; }
16 p, #test span { counter-increment: c; }
17 #test span:before {
18 content: counters(c, ".");
19 content: counters(f);
20 content: counters(f, decimal);
21 content: counters(f, decimal, ".");
22 content: counters(f, ".", decimal, decimal);
23 content: counters(f, ".", decimal, ".");
24 content: counters(f, ".", unknowntype);
25 }
26
27 </style>
28 </head>
29 <body>
30
31 <p>The following two lines should look the same:</p>
32
33 <div id="test">
34 <span></span>
35 <span></span>
36 <span></span>
37 <span></span>
38 <span></span>
39 <span></span>
40 <span></span>
41 <span></span>
42 <span></span>
43 <span></span>
44 <span></span>
45 <span></span>
46 </div>
47
48 <div>
49 1.1
50 1.2
51 1.3
52 1.4
53 1.5
54 1.6
55 1.7
56 1.8
57 1.9
58 1.10
59 1.11
60 1.12
61 </div>
62
63 </body>
64 </html>