page-break-after-004

page-break-after (invalid syntax)

WeasyPrint

This browser

Flags
invalid, paged
Assertion
The syntax of the 'page-break-after' 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-after (invalid syntax)</title>
 5 <link rel="author" title="Michael Turnwall" href="mailto:mturnwall@revenution.com">
 6 <link rel="author" title="Hewlett-Packard Company" href="http://www.hp.com/">
 7 <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#page-break-props">
 8 <meta name="flags" content="paged invalid">
 9 <meta name="assert" content="The syntax of the 'page-break-after' property is auto | always | avoid | left | right.">
10 <style type="text/css">
11 
12 	div.noBreakAuto {
13 		page-break-after:always;
14 		page-break-after:auto auto;
15 	}
16 	div.noBreakLeft {
17 		page-break-after:auto;
18 		page-break-after:left always;
19 	}
20 	div.noBreakAlways {
21 		page-break-after:always always;
22 	}
23 	.dummy {
24 		color:gray;
25 	}
26 
27 </style>
28 </head>
29 <body>
30 	<div class="noBreakAuto">This test must produce two pages of output. This sentence must be on the first page.</div>
31 	<div class="noBreakLeft">This sentence must be at the top of the second page.</div>
32 	<div class="noBreakAlways dummy">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</div>
33 	<p>This must be the last sentence on the second and final page.</p>
34 </body>
35 </html>