page-break-after-006

page-break-after applies to paged media

WeasyPrint

This browser

Assertion
The 'page-break-after' 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-after applies to 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-after' property applies to paged media only">
 9 <style type="text/css">
10 	div {
11 		page-break-after: always;
12 	}
13 </style>
14 </head>
15 <body>
16 	<div>When viewed on paged media, the next line must appear on a second page.</div>
17 
18 	<div>On continuous media, however, this line must appear directly below the line above.</div>
19 </body>
20 </html>