1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
4 <title>CSS 2.1 Test Suite: Implied counter scopes by 'counter-increment'</title>
5 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters">
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 <style type="text/css">
10 body { white-space: nowrap; }
13 .i { counter-increment: c 1; }
14 .ib:before { counter-increment: c 1; content: "B" }
15 .r { counter-reset: c 0; }
16 .u:before { content: counters(c, ".") " "; }
22 <p>The following two lines should be identical:</p>
24 <div><span class="ib"><span class="u"></span><span class="r"><span class="u"></span></span></span><span class="i"><span class="u"></span><span class="r"><span class="u"></span></span></span></div>