page-break-before-008

page-break-before paged media

WeasyPrint

This browser

Flags
paged
Assertion
The 'page-break-before' property applies to paged media only

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 paged media</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="assert" content="The 'page-break-before' property applies to paged media only">
 9 <meta name="flags" content="paged">
10 <style type="text/css">
11 	div {
12 		page-break-before: always;
13 		border: 2pt solid black;
14 	}
15 </style>
16 </head>
17 <body>
18 	<div>On screen, the next sentence must appear directly below this one.</div>
19 	<div>When printed, however, this sentence must appear at the top of the next page.</div>
20 </body>
21 </html>