page-break-after-007

page-break-after: auto

WeasyPrint

This browser

Flags
paged
Assertion
The 'auto' value of the 'page-break-after' property neither forces nor forbids a page break after the box.

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: auto</title>
 5 <link rel="author" title="Melinda Grant" href="mailto:melinda.grant@hp.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">
 9 <meta name="assert" content="The 'auto' value of the 'page-break-after' property neither forces nor forbids a page break after the box.">
10 <style type="text/css">
11 	html, body {
12 		height:100%;
13 		line-height:1;
14 		margin: 0;
15 		padding: 0;
16 	}
17 	div {
18 		page-break-after: auto;
19 	}
20 	div#first {height: 50%;}
21 	div#second {
22 		height: 50%;
23 		margin-bottom: -4em;
24 	}
25 	div#third {width: 0;}
26 </style>
27 </head>
28 <body>
29 	<div id="first">This test produces two pages. The next paragraph should appear on the same page as this one.</div>
30 
31 	<div id="second">The letters 'a', 'b', 'c', and 'd' may appear below or on the next page.  The letters 'e' and 'f' must appear on the next page.</div>
32 	<div id="third">a b c d e f</div>
33 </body>
34 </html>