2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / css2.1 / t120401-scope-01-c.html
blob93ce058910ac4c578cd165f71c8cc900b3891e9a
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <html>
3 <head>
4 <title>CSS 2.1 Test Suite: Counter scope and nesting on elements</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 span:before { counter-increment: c 1; content: "B" counters(c,".") "-" }
15 span:after { counter-increment: c 1; content: "A" counters(c,".") "-" }
17 body, span#reset { counter-reset: c 0; }
19 </style>
20 </head>
21 <body>
23 <p>The following two lines should be the same:</p>
25 <div><span><span><span id="reset"><span></span><span></span></span><span><span></span></span></span></span></div>
26 <div>B1-B2-B2.1-B2.2-A2.3-B2.4-A2.5-A2.6-B2.7-B2.8-A2.9-A2.10-A2.11-A3-</div>
28 </body>
29 </html>