Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / t1204-order-00-c.html
blobff6df26aecd2bbaee7e25fe2d4e179456b5367cf
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <html>
3 <head>
4 <title>CSS 2.1 Test Suite: Order of 'counter-reset', 'counter-increment', and counter use, including pseudo-elements</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 span.c span:before { content: counter(c); }
14 span.c { counter-reset: c 0; }
15 span.one { counter-reset: c 1; }
16 span.two { counter-increment: c 2; }
17 span.four:before { counter-reset: c 4; }
18 span.eight:before { counter-increment: c 8; }
19 span.c span:after { counter-increment: c 100; counter-reset: c 200; }
21 </style>
22 </head>
23 <body>
25 <p>The following should be identical:</p>
27 <div>
28 <span class="c"><span class=""></span></span>
29 <span class="c"><span class="one"></span></span>
30 <span class="c"><span class="two"></span></span>
31 <span class="c"><span class="two one"></span></span>
32 <span class="c"><span class="four"></span></span>
33 <span class="c"><span class="four one"></span></span>
34 <span class="c"><span class="four two"></span></span>
35 <span class="c"><span class="four two one"></span></span>
36 <span class="c"><span class="eight"></span></span>
37 <span class="c"><span class="eight one"></span></span>
38 <span class="c"><span class="eight two"></span></span>
39 <span class="c"><span class="eight two one"></span></span>
40 <span class="c"><span class="eight four"></span></span>
41 <span class="c"><span class="eight four one"></span></span>
42 <span class="c"><span class="eight four two"></span></span>
43 <span class="c"><span class="eight four two one"></span></span>
44 </div>
46 <div>
63 </div>
65 </body>
66 </html>