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: Allowed Page Breaks - Between Blocks</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/text.html#spacing-props">
7 <meta name="flags" content="paged">
8 <meta name="assert" content="Page breaks can occur between block boxes.">
9 <style type="text/css">
10 /* Most permissible breaking possible */
11 * { widows: 1; orphans: 1; widows: 0; orphans: 0; }
12
13 /* Leave 4em at bottom to play with, independent of page size. */
14 html, body {
15 height: 100%;
16 line-height: 1;
17 }
18 .spacer1 {
19 height: 70%;
20 }
21 .spacer2 {
22 height: 30%;
23 margin-top: -4em;
24 }
25
26 /* Test CSS */
27 .first, .second { /* Each border box is 1.5em; margin box is 2.5em. */
28 white-space: nowrap;
29 border: 0.25em solid blue;
30 margin: 0.5em;
31 /* Make test text more visible */
32 color: blue;
33 font-weight: bold;
34 }
35 </style>
36 </head>
37 <body>
38 <div class="spacer1">This test requires 2 pages. Box A must appear on the first page and Box B on the second.</div>
39 <div class="spacer2"></div>
40 <div class="first">Page 1 Box A</div>
41 <div class="second">Page 2 Box B</div>
42 </body>
43 </html>