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: @page width and height</title>
5 <link rel="author" title="Tom Clancy" href="mailto:tclancy@revenution.com">
6 <link rel="author" title="Hewlett-Packard Company" href="http://www.hp.com/">
7 <link rel="help" href="http://www.w3.org/TR/css3-page/#page-box-page-rule">
8 <link rel="help" href="http://www.w3.org/TR/css3-page/#page-properties">
9 <meta name="flags" content="paged">
10 <meta name="assert" content="The 'width' and 'height' properties do not apply to a page box.">
11 <style type="text/css">
12 @page {
13 width: 1in;
14 height: 1in;
15 border: 2pt solid black;
16 }
17 div.biggerBox {
18 width: 2in;
19 height: 2in;
20 border: 1pt solid black;
21 }
22 </style>
23 </head>
24 <body>
25 <div>This page should have a black border. The area inside the border should be larger than 1in×1in. The box below should be 2in×2in; and fit on the page.</div>
26 <div class="biggerBox"></div>
27 </body>
28 </html>