tor-browser

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

page-break-inside-004.xht (1393B)


      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 page-break-inside:auto</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-inside' property is 'auto'."/>
     10 <style type="text/css">
     11 	* {
     12 		margin: 0;
     13 		padding: 0;
     14 		orphans: 1;
     15 		widows: 1;
     16 	}
     17 	html, body {
     18 		height:100%;
     19 		line-height: 1;
     20 		font-size: 20px;
     21 	}
     22 	div.spacers {
     23 		height: 50%;
     24 	}
     25 	div#takeTwo {page-break-before: always}
     26 	div.backUp {margin-top: -4em;}
     27 	div#break2 {
     28 		page-break-inside: avoid;
     29 		page-break-inside: auto;
     30 	}
     31 	.breaker {
     32 		width: 0;
     33 		font-weight: bold;
     34 		color: blue;
     35 	}
     36 </style>
     37 </head>
     38 <body>
     39 	<div class="spacers">
     40 	  <p>This test produces four pages of output. The blue numbers must correspond to the page number they appear on.</p>
     41 	</div>
     42 	<div class="spacers backUp"></div>
     43 	<div class="breaker" id="break1">1 1 1 1 2 2 2 2</div>
     44 
     45 	<div class="spacers backup" id="takeTwo"></div>
     46 	<div class="spacers backUp"></div>
     47 	<div class="breaker" id="break2">3 3 3 3 4 4 4 4</div>
     48 </body>
     49 </html>