orphans-001

breaks inside elements: orphans initial value

WeasyPrint

This browser

Flags
paged
Assertion
The initial value of the 'orphans' property is 2.

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: breaks inside elements: orphans initial value</title>
 5 <link rel="author" title="Tom Clancy" href="mailto:tclancy@revenution.com">
 6 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 7 <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#break-inside">
 8 <link rel="help" href="http://www.w3.org/TR/css3-page/#breaks-inside">
 9 <meta name="flags" content="paged">
10 <meta name="assert" content="The initial value of the 'orphans' property is 2.">
11 <style type="text/css">
12 	html, body {
13 		height: 100%;
14 		line-height: 1;
15 		font-size: 20px;
16 	}
17 	* {
18 		margin:0;
19 		padding:0;
20 	}
21 	div.spacer {
22 		height:50%;
23 	}
24 	div.backup {
25 		margin-top: -1em;
26 	}
27 
28 	.test {
29 		color: blue;
30 		width: 1em;
31 	}
32 
33 </style>
34 </head>
35 <body>
36 	<div class="spacer">This test requires 2 pages. The blue text must
37 		denote accurate page numbers. Lines A-E must appear on the next page.</div>
38 
39 	<div class="spacer backup"></div>
40 	<div class="test">
41 		Page&nbsp;2&nbsp;Line&nbsp;A
42 		Page&nbsp;2&nbsp;Line&nbsp;B
43 		Page&nbsp;2&nbsp;Line&nbsp;C
44 		Page&nbsp;2&nbsp;Line&nbsp;D
45 		Page&nbsp;2&nbsp;Line&nbsp;E
46 	</div>
47 </body>
48 </html>