colors-007

Color keyword syntax

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: Color keyword syntax</title>
 5   <link rel="author" title="Germain Garand" href="mailto:germain@ebooksfrance.org">
 6   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#color-units">
 8   <meta name="flags" content="invalid">
 9   <style type="text/css">
10     p.correct { color: red }
11     p.incorrect { color: green }
12     p#keyword { color: green }
13     p#quoted { color: 'red'; color: "red"; }
14     p#hash { color: #red }
15     p#escape { color: g\re\45n }
16   </style>
17  </head>
18  <body>
19   <p class="incorrect" id="quoted">This sentence must be green</p>
20   <p class="incorrect" id="hash">This sentence must be green</p>
21   <p class="correct" id="keyword">This sentence must be green</p>
22   <p class="correct" id="escape">This sentence must be green</p>
23  </body>
24 </html>