tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

float-with-large-margin-bottom-cross-page-001-print-ref.html (816B)


      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="stylesheet" href="/fonts/ahem.css">
      7 
      8 <style>
      9 @page { size:5in 3in; margin:0.5in; }
     10 
     11 :root {
     12  print-color-adjust: exact;
     13 }
     14 
     15 html, body {
     16  margin: 0;
     17  font: 20px/1 Ahem;
     18 }
     19 </style>
     20 
     21 <div style="height: 1.5in; background: black">
     22  <!-- This "greedy div" exists to eat up most of the space on the first page. -->
     23 </div>
     24 <div style="background: gray; width: 2in; height: 0.5in;"></div>
     25 <div style="height: 1in"></div> <!-- Mimic float margin-bottom -->
     26 
     27 TEXT <!-- This text comes after the float (and after its margin-bottom) in the second page. -->