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 Line Boxes</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 line boxes.">
9 <style type="text/css">
10 /* Most permissible breaking possible */
11 * { widows: 1; orphans: 1; widows: 0; orphans: 0; }
12
13 /* Leave 2.5 lines 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: -2.5em;
24 }
25
26 .test {
27 white-space: pre;
28 /* Make test text more visible */
29 color: blue;
30 font-weight: bold;
31 }
32 </style>
33 </head>
34 <body>
35 <div class="spacer1">This test requires 2 pages. Lines A and B must appear
36 on the first page, lines C and D on the second.</div>
37 <div class="spacer2"></div>
38 <div class="test"> Page 1 Line A
39 Page 1 Line B
40 Page 2 Line C
41 Page 2 Line D
42 </div>
43 </body>
44 </html>