counters-scope-implied-000

Implied counter scopes with no 'counter-increment' or 'counter-reset'

WeasyPrint

This browser

Source

 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: Implied counter scopes with no 'counter-increment' or 'counter-reset'</title>
 5   <link rel="author" title="L. David Baron" href="http://dbaron.org/">
 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">
10 
11   body { white-space: nowrap; }
12 
13 
14   #one:before { content: counter(one) }
15   #two:before { content: counter(two) }
16 
17   </style>
18  </head>
19  <body>
20 
21  <p>The following should be identical:</p>
22 
23  <div><span id="one"></span><span id="two"></span></div>
24  <div>00</div>
25 
26  </body>
27 </html>