page-box-000

Page bleed

WeasyPrint

This browser

Flags
paged, should
Assertion
Content should be allowed slightly beyond the page box to allow pages to 'bleed'.

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: 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>