float-with-large-margin-bottom-cross-page-001-print.html (1059B)
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 <link rel="help" href="https://drafts.csswg.org/css-break/#possible-breaks"> 7 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1464761"> 8 <link rel="stylesheet" href="/fonts/ahem.css"> 9 <link rel="match" href="float-with-large-margin-bottom-cross-page-001-print-ref.html"> 10 11 <style> 12 @page { size:5in 3in; margin:0.5in; } 13 14 :root { 15 print-color-adjust: exact; 16 } 17 18 html, body { 19 margin: 0; 20 font: 20px/1 Ahem; 21 } 22 </style> 23 24 <div style="height: 1.5in; background: black"> 25 <!-- This "greedy div" exists to eat up most of the space on the first page. --> 26 </div> 27 <div style="float: left; background: gray; 28 width: 2in; height: 0.5in; margin-bottom: 1in"></div> 29 30 <br style="clear:both"> 31 TEXT <!-- This text comes after the float (and after its margin-bottom) in the second page. -->