tor-browser

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

break-nested-float-in-table-001-print.html (1215B)


      1 <!DOCTYPE html>
      2 <!-- Any copyright is dedicated to the Public Domain.
      3     http://creativecommons.org/publicdomain/zero/1.0/ -->
      4 <html>
      5  <meta charset="utf-8">
      6  <title>CSS Fragmentation Test: Test for pagination of a nested float element in a table in a printing context</title>
      7  <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      8  <link rel="author" title="Mozilla" href="http://www.mozilla.org/">
      9  <link rel="help" href="https://drafts.csswg.org/css-break/#possible-breaks">
     10  <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1412687">
     11  <link rel="match" href="break-nested-float-in-table-001-print-ref.html">
     12 
     13  <style>
     14  @page { size:5in 3in; margin:0.5in; }
     15 
     16  :root {
     17    print-color-adjust: exact;
     18  }
     19  html, body {
     20    margin: 0;
     21  }
     22  table {
     23    border-spacing: 0;
     24  }
     25  td {
     26    padding: 0;
     27  }
     28  #target {
     29    float: left;
     30    background: green;
     31    width: 2in;
     32    height: 6in; /* Expected to cover 3 pages. */
     33  }
     34  </style>
     35 
     36  <body>
     37    <table>
     38      <tr>
     39        <td>
     40          <div>
     41            <!-- target needs to be nested under <td> -->
     42            <div id="target"></div>
     43          </div>
     44        </td>
     45      </tr>
     46    </table>
     47  </body>
     48 </html>