ident-004

Valid Identifiers (starting with ideographic) as Classes and IDs

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: Valid Identifiers (starting with ideographic) 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   <style type="text/css">
 8 
 9   .one { color: red; background: white; }
10   .怀ident, .one { color: green; }
11 
12   .two { color: red; background: white; }
13   #怀ident, .two { color: green; }
14 
15   </style>
16  </head>
17  <body>
18 
19  <p class="one">This should be green.</p>
20  <p class="two">This should be green.</p>
21 
22  </body>
23 </html>