page-container-007.xht (1182B)
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: Fixed content outside the page area</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/visuren.html#fixed-positioning" /> 7 <meta name="flags" content="paged image" /> 8 <meta name="assert" content="Any portion of an element with 'position: fixed' which is positioned outside the page area is not printed." /> 9 <style type="text/css"> 10 11 img { 12 position: fixed; 13 top: -27px; 14 right: -27px; 15 } 16 div { 17 page-break-after: always; 18 padding-top: 75px; 19 } 20 21 </style> 22 </head> 23 <body> 24 <div> 25 <img alt="FAIL: image failed to load" src="support/page-container-007.png"/> 26 <p>When displayed on paged media, this test produces two pages.</p> 27 <p>A cat must appear in the upper right corner of each page and no red 28 must be visible.</p> 29 </div> 30 <div> 31 This text appears on page two. The cat image must be exactly the same 32 as on page 1. 33 </div> 34 </body> 35 </html>