page-container-000

Paged Media root container

WeasyPrint

This browser

Flags
paged
Assertion
For a single-page document, the containing box for the root element is the page area.

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: Paged Media root container</title>
 5   <link rel="author" title="Melinda Grant" href="mailto:melinda.grant@hp.com">
 6   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#page-box">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property">
 8   <link rel="help" href="http://www.w3.org/TR/css3-page/#page-box-page-rule">
 9   <meta name="flags" content="paged">
10   <meta name="assert" content="For a single-page document, the containing box for the root element is the page area.">
11   <style type="text/css">
12 	@page {
13 			margin: 2cm;
14 	}
15 	html {
16 			background: #fee;
17 	}
18   </style>
19  </head>
20  <body>
21   <p>There must be a pale pink background covering this page up to the two centimeter margin.</p>
22  </body>
23 </html>