1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Multiple 'counter-reset' before 'counter' use</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content">
7 <meta name="flags" content="">
8 <meta name="assert" content="If multiple resets are specified on the same 'counter' then all of them occur in the order specified.">
9 <style type="text/css">
10 .test:before
11 {
12 content: counter(chapter);
13 counter-reset: chapter -2;
14 }
15 .test1
16 {
17 counter-reset: chapter -2;
18 }
19 .test2
20 {
21 counter-reset: chapter -2;
22 }
23 .test3
24 {
25 counter-reset: chapter -2;
26 }
27 </style>
28 </head>
29 <body>
30 <p>Test passes if there is a number '-2' below.</p>
31 <div class="test1 test2 test3 test"></div>
32 </body>
33 </html>