float-page-break-inside-avoid-5-print.html (1030B)
1 <!DOCTYPE html> 2 <html lang="en-US"> 3 <head> 4 <title>CSS Test: CSS 2.1 page-break-inside:avoid</title> 5 <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012"> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside"> 7 <link rel="match" href="float-page-break-inside-avoid-5-print-ref.html"> 8 <meta name="flags" content="paged"> 9 <style type="text/css"> 10 @page { size:5in 3in; margin:0.5in; } 11 html,body { 12 color:black; background-color:white; font-size:16px; padding:0; margin:0; 13 } 14 p { height: 0.5in; width: 1in; margin:0; background-color:blue; float:left; } 15 .test { float:left; clear:left; page-break-inside:avoid; width:3.3in; } 16 </style> 17 </head> 18 <body> 19 <br style="clear:both"> 20 <div class="test"> 21 <p>1</p><p>2</p><p>3</p> 22 <p>4</p><p>5</p><p>6</p> 23 </div> 24 <div class="test"> 25 <p>1</p><p>2</p><p>3</p> 26 <p>4</p><p>5</p><p>6</p> 27 </div> 28 <div class="test"> 29 <p>1</p><p>2</p><p>3</p> 30 <p>4</p><p>5</p><p>6</p> 31 </div> 32 33 34 </body> 35 </html>