escapes-002

Invalid Punctuation Escapes

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: Invalid Punctuation Escapes</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   p.class#id { background: green; color: white; }
10 
11   p\.class#id { background: red; }
12 
13   p.class\#id { background: red; }
14 
15   p.class#id { background\: red; }
16 
17   p.class#id { background: red\; }
18 
19   p.class#id \{ background: red; \}
20   p.class#id { background: red; }
21 
22   </style>
23  </head>
24  <body>
25 
26  <p class="class" id="id">This paragraph should have a green background.</p>
27 
28  </body>
29 </html>