summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/pagination/allowed-page-breaks-004.xht
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/pagination/allowed-page-breaks-004.xht')
-rw-r--r--testing/web-platform/tests/css/CSS2/pagination/allowed-page-breaks-004.xht60
1 files changed, 60 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/pagination/allowed-page-breaks-004.xht b/testing/web-platform/tests/css/CSS2/pagination/allowed-page-breaks-004.xht
new file mode 100644
index 0000000000..e956b54e7d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/pagination/allowed-page-breaks-004.xht
@@ -0,0 +1,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>