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 :auto</title>
5 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
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 'auto' value of the 'page-break-before' property neither forces nor forbids a page break before the box.">
10 <style type="text/css">
11 html, body { height: 100%; line-height: 1; font-size: 20px; margin: 0; padding: 0; }
12 .spacer { height: 50%; }
13 .backup { margin-top: -2em; }
14 .start { page-break-before: always; }
15
16 p {
17 margin: 0;
18 color: blue;
19 orphans: 1;
20 widows: 1;
21 white-space: pre;
22 }
23
24 .avoidAuto { page-break-before: auto; }
25 </style>
26 </head>
27 <body>
28 <div class="spacer">
29 Lines A-F must appear on the 4 pages of this test. The blue text
30 must accurately describe the page numbers.
31 </div><div class="spacer backup"></div>
32 <p>Page 1 Line A</p>
33 <p class="avoidAuto">Page 1 Line B
34 Page 2 Line C</p>
35
36 <div class="spacer start"></div><div class="spacer backup"></div>
37 <p>Page 3 Line D
38 Page 3 Line E</p>
39 <p class="avoidAuto">Page 4 Line F</p>
40 </body>
41 </html>