tor-browser

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

table-cell-vertical-align-001-print.html (1283B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      4 <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      5 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1648947">
      6 <link rel="match" href="table-cell-vertical-align-001-print-ref.html">
      7 
      8 <style>
      9 @page { size: 5in 3in; margin: 0.5in; }
     10 body { margin: 0; }
     11 
     12 td {
     13  border: 3px solid purple;
     14 }
     15 ol {
     16  margin: 0;
     17 }
     18 </style>
     19 
     20 <table>
     21  <!-- This table row is fragmented across page boundary, and that makes Firefox
     22       force table-cells to behave as if they have vertical-align:top, to avoid
     23       data loss from the complexity of fragmenting arbitrarily-aligned cells.
     24  -->
     25  <tr>
     26    <td style="vertical-align: baseline">
     27      <ol>
     28        <li></li><li></li><li></li><li></li>
     29        <li></li><li></li><li></li><li></li>
     30        <li></li><li></li><li></li><li></li>
     31      </ol>
     32    </td>
     33    <td style="vertical-align: top">top</td>
     34    <td style="vertical-align: middle">middle</td>
     35    <td style="vertical-align: bottom">bottom</td>
     36    <td style="vertical-align: bottom" rowspan="2">bottom</td>
     37  </tr>
     38  <tr>
     39    <td colspan="4">
     40      <ol>
     41        <li></li><li></li>
     42        <li></li><li></li>
     43      </ol>
     44    </td>
     45  </tr>
     46 </table>