1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
4 <title>CSS 2.1 Test Suite: Counter scope and nesting</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 .reset { counter-reset: c; }
15 .rb:before { counter-reset: c; content: "R"; }
16 .use { counter-increment: c; }
17 .use:before { content: counters(c, ".") " "; }
23 <p>The next two lines should be the same:</p>
25 <div><span class="reset"></span><span class="use"></span><span class="reset"></span><span class="use"></span><span class="rb"><span class="use"></span><span class="reset"></span><span class="use"></span></span></div>
26 <div>1 1 R1.1 1.1</div>