abspos-paged-001

Positioning in paged media: Initial containing block

WeasyPrint

This browser

Flags
paged

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: Positioning in paged media: Initial containing block</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/paged/001.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#page-intro">
 8   <meta name="flags" content="paged">
 9   <style type="text/css">
10    div { page-break-after: always; }
11    h1 { position: absolute; top: 2em; left: 1em; font: 6em monospace; }
12   </style>
13  </head>
14  <body>
15   <p>Display this in a paged media. The word PASS should display below
16   (followed by three mostly-blank pages).</p>
17   <div><h1>P</h1></div>
18   <div><h1>&nbsp;A</h1>Blank Page 1</div>
19   <div><h1>&nbsp;&nbsp;S</h1>Blank Page 2</div>
20   <div><h1>&nbsp;&nbsp;&nbsp;S</h1>Blank Page 3</div>
21  </body>
22 </html>