orphans-001.xht (1299B)
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: orphans 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 <link rel="help" href="http://www.w3.org/TR/css3-page/#breaks-inside"/> 9 <meta name="flags" content="paged" /> 10 <meta name="assert" content="The initial value of the 'orphans' property is 2."/> 11 <style type="text/css"> 12 html, body { 13 height: 100%; 14 line-height: 1; 15 font-size: 20px; 16 } 17 * { 18 margin:0; 19 padding:0; 20 } 21 div.spacer { 22 height:50%; 23 } 24 div.backup { 25 margin-top: -1em; 26 } 27 28 .test { 29 color: blue; 30 width: 1em; 31 } 32 33 </style> 34 </head> 35 <body> 36 <div class="spacer">This test requires 2 pages. The blue text must 37 denote accurate page numbers. Lines A-E must appear on the next page.</div> 38 39 <div class="spacer backup"></div> 40 <div class="test"> 41 Page 2 Line A 42 Page 2 Line B 43 Page 2 Line C 44 Page 2 Line D 45 Page 2 Line E 46 </div> 47 </body> 48 </html>