table-page-break-inside-avoid-3-print.html (875B)
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="table-page-break-inside-avoid-3-print-ref.html"> 8 <meta name="flags" content="paged"> 9 <style type="text/css"> 10 @page { size:5in 3in; margin:0.5in; } 11 p { height: 1in; width: 1in; margin:0; background-color:blue; } 12 .test { page-break-inside:avoid; } 13 table { display:inline-table; } 14 </style> 15 </head> 16 <body> 17 <table border="1"> 18 <tbody> 19 <tr><td><p>1</p></td></tr> 20 </tbody> 21 </table> 22 <div style="page-break-after: always"></div> 23 <table border="1" class="test"> 24 <tbody></tbody> 25 <tbody> 26 <tr><td><p>2</p><p>3</p><p>4</p></td></tr> 27 </tbody> 28 </table> 29 </body> 30 </html>