ident-012.xht (1024B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Valid Identifiers (starting with escaped digits, control codes) as Classes and IDs</title> 5 <link rel="author" title="L. David Baron" href="https://dbaron.org/"/> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#characters"/> 7 <link rel="match" href="ident-012-ref.xht"/> 8 <style type="text/css"> 9 10 .one { color: red; background: white; } 11 .\6ident, .one { color: green; } 12 13 .two { color: red; background: white; } 14 #\6ident, .two { color: green; } 15 16 .three { color: red; background: white; } 17 .\36ident, .three { color: green; } 18 19 .four { color: red; background: white; } 20 #\36ident, .four { color: green; } 21 22 </style> 23 </head> 24 <body> 25 26 <p class="one">This should be green.</p> 27 <p class="two">This should be green.</p> 28 <p class="three">This should be green.</p> 29 <p class="four">This should be green.</p> 30 31 </body> 32 </html>