page-break-after-008

page-break-after: right

WeasyPrint

This browser

Flags
paged
Assertion
The 'right' value of the 'page-break-after' property forces one or two page breaks before the box so that the page after the break is formatted as a right page

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: right</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 'right' value of the 'page-break-after' property forces one or two page breaks before the box so that the page after the break is formatted as a right page">
 9 <meta name="flags" content="paged">
10 <style type="text/css">
11 	@page {margin: 7%;}
12 	@page :left {
13 		@top-center 
14 		{
15 			content: "[This page intentionally left blank]";
16 		}
17 	}
18 	p {
19 		page-break-after: right;
20 	}
21 </style>
22 </head>
23 <body>
24 	<p>When printed, this test requires two or three pages. There may be a blank page after this sentence.</p>
25 	<p>If there was a blank page, this content should appear on the third page.</p>
26 </body>
27 </html>