summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/pagination/allowed-page-breaks-004.xht
blob: e956b54e7db5b07358950ff9ec757061ca4bfae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: allowed page break - dropping widows and orphans restrictions</title>
<link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
<link rel="author" title="Tom Clancy" href="mailto:tclancy@revenution.com"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/page.html#page-break-props"/>
<meta name="assert" content="If the standard restrictions do not provide enough break points to keep content from overflowing the page boxes after dropping the restrictions imposed by 'avoid' on the 'page-break-*' properties then the restrictions due to 'windows' and 'orphans' are dropped as well."/>
<meta name="flags" content="paged" />
<style type="text/css">
	html, body { line-height: 1; margin: 0; padding: 0; }
	pre {
		margin: 0; padding: 0;
		font: inherit;
		font-size: 12pt;
		white-space: pre;
		page-break-before: avoid;
		page-break-after: avoid;
		page-break-inside: avoid;
		widows: 30;
		orphans: 30;
		font-size:
	}
	span {
		font-size: 1in;
	}
</style>
</head>
<body>
<pre id="wrapper">This test assumes pages &lt; 26in tall.
Lines A-Z must all appear in order,
filling each page until Z on the last.
<span>Line A
Line B
Line C
Line D
Line E
Line F
Line G
Line H
Line I
Line J
Line K
Line L
Line M
Line N
Line O
Line P
Line Q
Line R
Line S
Line T
Line U
Line V
Line W
Line X
Line Y
Line Z</span></pre>
</body>
</html>