at-import-008

@import - media-dependence

WeasyPrint

This browser

Flags
paged
Assertion
Media-dependent @import rules

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3 
 4  <head>
 5 
 6   <title>CSS Test: @import - media-dependence</title>
 7 
 8   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
 9   <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#at-import">
10   <meta content="paged" name="flags">
11   <meta content="Media-dependent @import rules" name="assert">
12 
13   <style type="text/css">
14   @import url("support/a-green.css") print;
15   </style>
16 
17  </head>
18 
19  <body class="a">
20 
21   <p>PREREQUISITE: Switch to print preview or a paged media view of
22   the page.</p>
23 
24   <p>Test passes if the whole text of this page is green.</p>
25 
26  </body>
27 </html>