1
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
4 <title>CSS
2.1 Test Suite: Counter scope
</title>
5 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/generate.html#scope">
6 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/generate.html#counters">
7 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/generate.html#propdef-content">
8 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/syndata.html#counter">
9 <style type=
"text/css">
11 body
{ white-space: nowrap
; }
14 .scope { counter-reset: c
1; }
15 .scope:before, .scope:after { content: counter
(c
); }
16 .c:before { content: counter
(c
); }
18 .one:before { counter-reset: c
2; }
19 .two { counter-reset: c
3; }
25 <p>The next
2 lines should be identical:
</p>
28 <span class=
"scope"><span class=
"one c"><span class=
"c"></span></span><span class=
"c"></span></span><span class=
"c"></span>
29 <span class=
"scope"><span class=
"two c"><span class=
"c"></span></span><span class=
"c"></span></span><span class=
"c"></span>