widows-004b

widows property syntax - one

WeasyPrint

This browser

Flags
paged
Assertion
The 'widows' property accepts the integer one.

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: widows property syntax - one</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 'widows' property accepts the integer one.">
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:-3.5em;
26 	}
27 
28 	.test {
29 		color: blue;
30 		width: 1em;
31 		widows: 2;
32 		widows: 01;
33 	}
34 
35 </style>
36 </head>
37 <body>
38 	<div class="spacer">This test requires 2 pages. The blue text must
39 		denote accurate page numbers. Lines A-C must appear on this page;
40 		line D must appear on the next page.</div>
41 
42 	<div class="spacer backup"></div>
43 	<div class="test">
44 		Page&nbsp;1&nbsp;Line&nbsp;A
45 		Page&nbsp;1&nbsp;Line&nbsp;B
46 		Page&nbsp;1&nbsp;Line&nbsp;C
47 		Page&nbsp;2&nbsp;Line&nbsp;D
48 	</div>
49 </body>
50 </html>