orphans-004a

orphans property syntax - integer

WeasyPrint

This browser

Flags
invalid, paged
Assertion
The syntax of the 'orphans' property is integer.

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: orphans property syntax - integer</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="invalid paged">
10 <meta name="assert" content="The syntax of the 'orphans' property is integer.">
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: -5em;
26 	}
27 
28 	.test {
29 		color: blue;
30 		width: 1em;
31 		orphans: 5;
32 		orphans: 2.0;
33 		orphans: 2em;
34 		orphans: -2;
35 		orphans: 0;
36 	}
37 
38 </style>
39 </head>
40 <body>
41 	<div class="spacer">This test requires 2 pages. The blue text must
42 		denote accurate page numbers. Lines F-G must appear on the next
43 		page.</div>
44 
45 	<div class="spacer backup"></div>
46 	<div class="test">
47 		Page&nbsp;1&nbsp;Line&nbsp;A
48 		Page&nbsp;1&nbsp;Line&nbsp;B
49 		Page&nbsp;1&nbsp;Line&nbsp;C
50 		Page&nbsp;1&nbsp;Line&nbsp;D
51 		Page&nbsp;1&nbsp;Line&nbsp;E
52 		Page&nbsp;2&nbsp;Line&nbsp;F
53 		Page&nbsp;2&nbsp;Line&nbsp;G
54 	</div>
55 </body>
56 </html>