page-break-inside-003.xht (969B)
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 invalid syntax</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 <meta name="flags" content="paged invalid" /> 8 <meta name="assert" content="The syntax of the 'page-break-inside' property is auto | avoid."/> 9 <style type="text/css"> 10 * { 11 margin: 0; 12 padding: 0; 13 orphans: 1; 14 widows: 1; 15 } 16 html, body { 17 height:100%; 18 line-height: 1; 19 font-size: 20px; 20 } 21 div.spacers { 22 height: 50%; 23 } 24 div#backUp {margin-top: -2em;} 25 div#noBreak { 26 page-break-inside: false; 27 width: 0; 28 } 29 30 </style> 31 </head> 32 <body> 33 <div class="spacers">The text below should span two pages.</div> 34 <div class="spacers" id="backUp"></div> 35 <div id="noBreak">a b c</div> 36 </body> 37 </html>