table-fragmentation-001a-print-ref.html (572B)
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 6 <style> 7 @page { size: 5in 3in; margin: 0.5in; } 8 :root { 9 print-color-adjust: exact; 10 } 11 body { margin: 0; } 12 13 .table { 14 width: 3in; 15 box-sizing: border-box; 16 border: 0.25in solid black; 17 padding: 0.5in; 18 } 19 .td { 20 border: 0.25in solid orange; 21 } 22 .content { 23 height: 1.5in; 24 background: gold; 25 } 26 </style> 27 28 <div class="table"> 29 <div class="td"> 30 <div class="content"></div> 31 </div> 32 </div>