tor-browser

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

single-line-column-flex-fragmentation-065-print.html (1396B)


      1 <!DOCTYPE html>
      2 <!-- This test is adapted from https://bugzilla.mozilla.org/show_bug.cgi?id=1744363#c9 -->
      3 <html>
      4  <meta charset="utf-8">
      5  <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      6  <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      7  <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">
      8  <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1744363">
      9  <link rel="match" href="single-line-column-flex-fragmentation-065-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  body {
     19    margin: 0;
     20  }
     21  .flexbox {
     22    display: flex; /* This triggers the bug. */
     23    display: column;
     24    border: 0.25in solid black;
     25  }
     26  .flexbox table {
     27    border-spacing: 0;
     28  }
     29  .flexbox thead, .flexbox tfoot {
     30    background: gold;
     31  }
     32  .text, tr {
     33    block-size: 0.25in;
     34  }
     35  </style>
     36 
     37  <div class="text">Before Flexbox</div>
     38  <div class="flexbox">
     39    <table>
     40      <thead><tr><td>Header</td></tr></thead>
     41      <tfoot><tr><td>Footer</td></tr></tfoot>
     42      <tbody>
     43        <tr><td>1</td></tr>
     44        <tr><td>2</td></tr>
     45        <tr><td>3</td></tr>
     46        <tr><td>4</td></tr>
     47        <tr><td>5</td></tr>
     48        <tr><td>6</td></tr>
     49        <tr><td>7</td></tr>
     50      </tbody>
     51    </table>
     52  </div>
     53  <div class="text">After Flexbox</div>
     54 </html>