containing-block-025

Containing block and absolutely positioned element in paged media positioned off first page

WeasyPrint

This browser

Flags
may, paged
Assertion
An absolutely positioned element positioned beyond the boundaries of the page being laid out can be omitted, rendered on the current page or on a following page.

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: Containing block and absolutely positioned element in paged media positioned off first page</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
 7         <meta name="flags" content="may paged">
 8         <meta name="assert" content="An absolutely positioned element positioned beyond the boundaries of the page being laid out can be omitted, rendered on the current page or on a following page.">
 9         <style type="text/css">
10             @media print
11             {
12                 #print
13                 {
14                     display: none;
15                 }
16                 div
17                 {
18                     border: solid black;
19                     height: 1in;
20                     left: 0;
21                     position: absolute;
22                     top: 50in;
23                     width: 1in;
24                 }
25             }
26         </style>
27     </head>
28     <body>
29         <p id="print">PREREQUISITE: Switch to paged media view.</p>
30         <p>Test passes if there is no box below, or there is a box on page 1, or there is a box on a following page.</p>
31         <div></div>
32     </body>
33 </html>