float-with-large-margin-bottom-cross-page-002-print-ref.html (603B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> 4 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 5 <link rel="author" title="Mozilla" href="https://www.mozilla.org/"> 6 7 <style> 8 @page { size:5in 3in; margin:0.5in; } 9 10 :root { 11 print-color-adjust: exact; 12 } 13 14 html, body { 15 margin: 0; 16 } 17 </style> 18 19 <div style="height: 1.5in; background: black"> 20 <!-- This "greedy div" exists to eat up most of the space on the first page. --> 21 </div> 22 <div style="background: gray; width: 2in; height: 0.5in; break-before: page"></div>