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: Ignoring at-rules inside declaration blocks</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/page.html#page-box">
7 <meta name="flags" content="invalid paged">
8 <meta name="assert" content="At-rules inside @page blocks are parsed as invalid at-rule statements.">
9 <style type="text/css">
10 @page {
11 @import "support/import-red";
12 margin-left: 50%;
13 @media print { }
14 margin-top: 50%;
15 }
16 @page {
17 @media print { }
18 margin-top: 0;
19 }
20 @page {
21 margin-top: 0
22 @media print {}
23 }
24 @page {
25 margin-top: 0
26 @media print;
27 }
28 @page {
29 @import "support/import-red"
30 margin-top: 0;
31 }
32 html, body, p {
33 margin: 0;
34 padding: 0;
35 }
36 p {
37 border: solid blue;
38 }
39 </style>
40 </head>
41 <body>
42 <p class="import">When printed the top left corner of this box must be in
43 the exact center of this page.</p>
44 </body>
45 </html>