page-break-before-006

page-break-before (invalid syntax)

WeasyPrint

This browser

Flags
invalid, paged
Assertion
The syntax of the 'page-break-before' property is auto | always | avoid | left | right.

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: page-break-before (invalid syntax)</title>
 5 <link rel="author" title="Tom Clancy" href="mailto:tclancy@revenution.com">
 6 <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#page-break-props">
 7 <link rel="help" href="http://www.w3.org/TR/css3-page/#pg-br-before-after">
 8 <meta name="flags" content="paged invalid">
 9 <meta name="assert" content="The syntax of the 'page-break-before' property is auto | always | avoid | left | right.">
10 <style type="text/css">
11 	p.noBreakAuto {
12 		page-break-before: always;
13 		page-break-before: auto auto;
14 	}
15 	p.noBreakLeft {
16 		page-break-before: auto;
17 		page-break-before: left always;
18 	}
19 	p.noBreakAlways {
20 		page-break-before: true;
21 	}
22 	p.breakRight {
23 		page-break-before: right;
24 		page-break-before: 2;
25 	}
26 	p.breakLeft {
27 		page-break-before: left;
28 		page-break-before: avoid always;
29 	}
30 	p.noBreak {
31 		page-break-before: avoid;
32 		page-break-before: always always;
33 	}
34 
35 </style>
36 </head>
37 <body>
38 	<p>When printed, this test requires 4 pages. Page one contains only this 
39     paragraph.</p>
40 	<p class="noBreakAuto">This text is at the top of page two.</p>
41 	<p class="noBreakLeft">This text is also on page two.</p>
42 	<p class="noBreakAlways">And this text is on page two as well.</p>
43 	
44 	<p class="breakRight">This paragraph is on page three. A page break follows.</p>
45 	<p class="breakLeft">This text is at the top of page four.</p>
46 	<p class="noBreak">This last paragraph is also on page four.</p>
47 </body>
48 </html>