at-import-009

@import following a known but invalid @rule

WeasyPrint

This browser

Flags
invalid
Assertion
@import is respected after known but ignored @rule.

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 a known but invalid @rule</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 known but ignored @rule.">
 9         <style type="text/css">
10            @media;
11            @page;
12            @charset;
13            @import "support/import-green.css";
14         </style>
15     </head>
16     <body>
17         <p class="import">This sentence must be green.</p>
18     </body>
19 </html>