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-break-before explicit auto test</title>
5 <link rel="author" title="Tom Clancy" href="mailto:tclancy@revenution.com">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#page-break-props">
7 <link rel="help" href="http://www.w3.org/TR/css3-page/#pg-br-before-after">
8 <meta name="flags" content="paged">
9 <meta name="assert" content="The initial value of the 'page-break-before' property is 'auto'.">
10 <style type="text/css">
11 @page {
12 margin: 7%;
13 }
14 html, body {
15 height:100%;
16 line-height:1;
17 }
18 * {
19 margin:0;
20 padding:0;
21 page-break-before: always;
22 page-break-before: auto;
23 }
24 div#one {height: 20%;}
25 div#two {
26 height: 80%;
27 margin-bottom: -4em;
28 }
29 p {width: 1em;}
30 </style>
31 </head>
32 <body>
33 <div id="one">This test requires two pages.</div>
34 <div id="two">This text must appear on the same page as the line above it. The dummy text below this will flow onto a second page.</div>
35 <p>a b c d e</p>
36 </body>
37 </html>