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: Matching brackets and quotes for declarations</title>
5 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#parsing-errors">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/media.html#at-media-rule">
8 <meta name="flags" content="invalid">
9 <meta name="assert" content="User agents must handle unexpected tokens encountered while parsing a declaration by reading until the end of the statement, while observing the rules for matching pairs of brackets and quotes, and correctly handling escapes. ">
10 <style type="text/css">
11 p {
12 background: red;
13 color: green;
14 color: red ] ) test-token \
15 ~ ` ! @ # $ % ^ & * - _ + = | : > < ? / , .
16 [\]\5D ']' "]"; background: red; } p { color: red; } ]
17 (\)\29 ')' ")"; background: red; } p { color: red; } )
18 '\'; background: red; } p { color: red; }',
19 "\"; background: red; } p { color: red; }' p { color: red; } "
20 ;
21 background: white;
22 }
23 </style>
24 </head>
25 <body>
26 <p>This sentence must be green.</p>
27 </body>
28 </html>