2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / css2.1 / t1202-counters-16-c.html
blob326aebfc0fb7cdbc846f3bfc386c2cbc9c0ed81c
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <html>
3 <head>
4 <title>CSS 2.1 Test Suite: content: counters() string argument</title>
5 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles">
8 <style type="text/css">
10 body { white-space: nowrap; }
13 body, #test { counter-reset: c; }
14 p, #test span { counter-increment: c; }
16 span#one:before { content: counters(c, ".") " - "; }
17 span#two:before { content: counters(c, "") " - "; }
18 span#three:before { content: counters(c, ".", decimal) "-- --" counters(c, "-------", decimal); }
20 </style>
21 </head>
22 <body>
24 <p>The following two lines should look the same:</p>
26 <div id="test"><span id="one"></span><span id="two"></span><span id="three"></span></div>
28 <div>1.1 - 12 - 1.3-- --1-------3</div>
30 </body>
31 </html>