tor-browser

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

single-line-row-flex-fragmentation-045-print.html (1370B)


      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-row-flex-fragmentation-045-print-ref.html">
     10 
     11  <style>
     12  @page { size: 5in 3in; margin: 0.5in; }
     13  :root {
     14    print-color-adjust: exact;
     15  }
     16  body {
     17    margin: 0;
     18  }
     19  .flexbox {
     20    display: flex; /* This triggers the bug. */
     21    border: 0.25in solid black;
     22  }
     23  .flexbox table {
     24    border-spacing: 0;
     25  }
     26  .flexbox thead, .flexbox tfoot {
     27    background: gold;
     28  }
     29  .text, tr {
     30    block-size: 0.25in;
     31  }
     32  </style>
     33 
     34  <div class="text">Before Flexbox</div>
     35  <div class="flexbox">
     36    <table>
     37      <thead><tr><td>Header</td></tr></thead>
     38      <tfoot><tr><td>Footer</td></tr></tfoot>
     39      <tbody>
     40        <tr><td>1</td></tr>
     41        <tr><td>2</td></tr>
     42        <tr><td>3</td></tr>
     43        <tr><td>4</td></tr>
     44        <tr><td>5</td></tr>
     45        <tr><td>6</td></tr>
     46        <tr><td>7</td></tr>
     47      </tbody>
     48    </table>
     49  </div>
     50  <div class="text">After Flexbox</div>
     51 </html>