tor-browser

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

widows-001.xht (1265B)


      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: breaks inside elements: widows - initial value</title>
      5 <link rel="author" title="Tom Clancy" href="mailto:tclancy@revenution.com"/>
      6 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
      7 <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#break-inside"/>
      8 <meta name="flags" content="paged" />
      9 <meta name="assert" content="The initial value of the 'widows' property is 2."/>
     10 <style type="text/css">
     11 	html, body {
     12 		height: 100%;
     13 		line-height: 1;
     14 		font-size: 20px;
     15 	}
     16 	* {
     17 		margin:0;
     18 		padding:0;
     19 	}
     20 	div.spacer {
     21 		height:50%;
     22 	}
     23 	div.backup {
     24 		margin-top:-4em;
     25 	}
     26 
     27 	.test {
     28 		color: blue;
     29 		width: 1em;
     30 	}
     31 
     32 </style>
     33 </head>
     34 <body>
     35 	<div class="spacer">This test requires 2 pages. The blue text must
     36 		denote accurate page numbers. Lines A-C must appear on this page;
     37 		lines D-E must appear on the next page.</div>
     38 
     39 	<div class="spacer backup"></div>
     40 	<div class="test">
     41 		Page&nbsp;1&nbsp;Line&nbsp;A
     42 		Page&nbsp;1&nbsp;Line&nbsp;B
     43 		Page&nbsp;1&nbsp;Line&nbsp;C
     44 		Page&nbsp;2&nbsp;Line&nbsp;D
     45 		Page&nbsp;2&nbsp;Line&nbsp;E
     46 	</div>
     47 
     48 </body>
     49 </html>