ident-008

Invalid Identifiers (starting with digit) as Classes and IDs

WeasyPrint

This browser

Flags
invalid

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: Invalid Identifiers (starting with digit) as Classes and IDs</title>
 5   <link rel="author" title="L. David Baron" href="http://dbaron.org/">
 6   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#characters">
 7   <meta name="flags" content="invalid">
 8   <style type="text/css">
 9 
10   .one { color: green; background: white; }
11   .6ident, .one { color: red; }
12 
13   .two { color: green; background: white; }
14   #6ident, .two { color: red; }
15 
16   </style>
17  </head>
18  <body>
19 
20  <p class="one">This should be green.</p>
21  <p class="two">This should be green.</p>
22 
23  </body>
24 </html>