blob: 168531cb1017826461e8ff5a0917fde1c33573b1 [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(c, none)</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; }
14 #test span { counter-increment: c; }
15 #test span:before { content: counter(c, none) "z"; }
16
17 </style>
18 </head>
19 <body>
20
21 <p>The following two lines should look <em>approximately</em> the same:</p>
22
23 <div id="test">
24 <span></span>
25 <span></span>
26 <span></span>
27 <span></span>
28 <span></span>
29 <span></span>
30 <span></span>
31 <span></span>
32 <span></span>
33 <span></span>
34 <span></span>
35 <span></span>
36 </div>
37
38 <div>
39 z
40 z
41 z
42 z
43 z
44 z
45 z
46 z
47 z
48 z
49 z
50 z
51 </div>
52
53 </body>
54</html>