table-fragmentation-002c-print.html (899B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 4 <link rel="author" title="Mozilla" href="https://www.mozilla.org/"> 5 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1863421"> 6 <link rel="match" href="table-fragmentation-002c-print-ref.html"> 7 8 <style> 9 @page { size: 5in 3in; margin: 0.5in; } 10 :root { 11 print-color-adjust: exact; 12 } 13 body { margin: 0; } 14 15 table { 16 inline-size: 3in; 17 border-spacing: 0.25in; 18 border: 0.25in solid black; 19 padding: 0.25in; 20 box-decoration-break: clone; 21 } 22 td { 23 vertical-align: top; 24 padding: 0; 25 border: 0.25in solid orange; 26 } 27 .content { 28 block-size: 1.5in; 29 background: gold; 30 } 31 </style> 32 33 <div style="height: 0.25in">BEFORE TABLE</div> 34 <table> 35 <tbody> 36 <tr> 37 <td><div class="content"></div></td> 38 </tr> 39 </tbody> 40 </table> 41 <div style="height: 0.25in">AFTER TABLE</div>