containing-block-025.xht (1433B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 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>