at-rule-012

Parser error handling with invalid at-rules: @ invalid selector with a hyphen

WeasyPrint

This browser

Flags
invalid
Assertion
At-Rules are ignored it they start with an at-keyword (@ followed immediately by an identifier).

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: Parser error handling with invalid at-rules: @ invalid selector with a hyphen</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#parsing-errors">
 7         <meta name="flags" content="invalid">
 8         <meta name="assert" content="At-Rules are ignored it they start with an at-keyword (@ followed immediately by an identifier).">
 9         <style type="text/css">
10             @-1import "support/at-rule-red.css";
11             div
12             {
13                 color: red;
14             }
15             *
16             {
17                 color: green;
18             }
19             p
20             {
21                 color: black;
22             }
23         </style>
24     </head>
25     <body>
26         <p>Test passes if the "Filler Text" below is green.</p>
27         <div>Filler Text</div>
28     </body>
29 </html>