tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

page-break-before-007-b.xht (1107B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4 <title>CSS Test: page-break-before explicit auto test</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="flags" content="paged" />
      9 <meta name="assert" content="The initial value of the 'page-break-before' property is 'auto'."/>
     10 <style type="text/css">
     11 	@page {
     12 		margin: 7%;
     13 	}
     14 	html, body {
     15 		height:100%;
     16 		line-height:1;
     17 	}
     18 	* {
     19 		margin:0;
     20 		padding:0;
     21 		page-break-before: always;
     22 		page-break-before: auto;
     23 	}
     24 	div#one {height: 20%;}
     25 	div#two {
     26 		height: 80%;
     27 		margin-bottom: -4em;
     28 	}
     29 	p {width: 1em;}
     30 </style>
     31 </head>
     32 <body>
     33 	<div id="one">This test requires two pages.</div>
     34 	<div id="two">This text must appear on the same page as the line above it. The dummy text below this will flow onto a second page.</div>
     35 	<p>a b c d e</p>
     36 </body>
     37 </html>