at-import-010

@import following an invalid selector

WeasyPrint

This browser

Flags
invalid
Assertion
@import is respected after invalid (ignored) rule set

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 an invalid selector</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 respected after invalid (ignored) rule set">
 9         <style type="text/css">
10            # { background: red; }
11            :unknownpseudo { background: red; }
12            @import "support/import-green.css";
13         </style>
14     </head>
15     <body>
16         <p class="import">This sentence must be green.</p>
17     </body>
18 </html>