blob: ab881be995b62caeb2ab08d3c07e40b3d2803431 [file] [log] [blame]
darinec375482007-01-06 01:36:24 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2<html>
bdakine156faa2006-10-02 23:25:58 +00003 <head>
4 <title>CSS 2.1 Test Suite: content: counter() error cases</title>
darinec375482007-01-06 01:36:24 +00005 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles">
bdakine156faa2006-10-02 23:25:58 +00008 <style type="text/css">
9
darinec375482007-01-06 01:36:24 +000010 body { white-space: nowrap; }
11
12
bdakine156faa2006-10-02 23:25:58 +000013 #test { counter-reset: c 0 f 1000; }
14 #test span { counter-increment: c; }
15 #test span:before {
16 content: counter(c);
17 content: counter(f, ".");
18 content: counter(f, ".", decimal);
19 content: counter(f, decimal, ".");
20 content: counter(f, decimal, decimal);
21 content: counter(f, unknowntype);
22 }
23
24 </style>
25 </head>
26 <body>
27
28 <p>The following two lines should look the same:</p>
29
30 <div id="test">
31 <span></span>
32 <span></span>
33 <span></span>
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 </div>
44
45 <div>
46 1
47 2
48 3
49 4
50 5
51 6
52 7
53 8
54 9
55 10
56 11
57 12
58 </div>
59
60 </body>
61</html>