page-box-000.xht (1085B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Page bleed</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#outside-page-box" /> 7 <link rel="help" href="http://www.w3.org/TR/css3-page/#content-outside-box" /> 8 <meta name="flags" content="paged should" /> 9 <meta name="assert" content="Content should be allowed slightly beyond the page box to allow pages to 'bleed'. "/> 10 <style type="text/css"> 11 12 @page { 13 margin: -1em; 14 } 15 html { 16 height: 100%; 17 background: #dff; 18 } 19 div { 20 padding: 3em; 21 } 22 23 </style> 24 </head> 25 <body> 26 <div> 27 This test produces one page on paged media. When viewed in a print preview or printed on a printer supporting "full bleed" 28 (also known as "edge-to-edge" or "borderless" printing), the entire surface of the medium is a pale cyan. There is no white showing around the edges. 29 </div> 30 </body> 31 </html>