at-import-011

@import following garbage

WeasyPrint

This browser

Flags
invalid
Assertion
@import is parsed as part of invalid ruleset after garbage.

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: @import following garbage</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#at-rules">
 7         <meta name="flags" content="invalid">
 8         <meta name="assert" content="@import is parsed as part of invalid ruleset           after garbage.">
 9         <style type="text/css">
10            # :unknownpseudo
11            @import "support/import-red.css";
12            .import { color: red; }
13            p { color: green; }
14         </style>
15     </head>
16     <body>
17         <p class="import">This sentence must be green.</p>
18     </body>
19 </html>