tor-browser

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

fixed-table-layout-025-vrl.html (1806B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
      2 <html>
      3 <head>
      4  <title>CSS Test: percentage height set on table-cell in 'table-layout: fixed' table</title>
      5  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
      6  <link rel="author" title="Adapted for vertical layout by Simon Montagu" href="http:/mozilla.org/">
      7  <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#fixed-table-layout" title="17.5.2.1 Fixed table layout">
      8  <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#separated-borders" title="17.6.1 The separated borders model">
      9  <link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2012Oct/0121.html" title="[CSS21] tables, percentages, and border-spacing">
     10  <link rel="match" href="fixed-table-layout-025-ref.html">
     11  <meta name="flags" content="">
     12  <meta name="assert" content="A cell in the first row with a value other than 'auto' for the 'height' property determines the height for that column in the fixed table layout algorithm. The determination of the height of such column must nevertheless still take into account the vertical padding of such cell.">
     13  <style type="text/css">
     14  table
     15  {
     16   writing-mode: vertical-rl;
     17   border-spacing: 0px;
     18   table-layout: fixed;
     19   height: 100px;
     20  }
     21  td#middle-green-cell
     22  {
     23   background-color: green;
     24   height: 50%;
     25  }
     26  td#left-red-cell, td#right-red-cell {background-color: red;}
     27  td {padding: 25px 50px;}
     28  </style>
     29 </head>
     30 <body>
     31   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     32   <table>
     33     <tr>
     34       <td id="left-red-cell"></td>
     35       <td id="middle-green-cell"></td>
     36       <td id="right-red-cell"></td>
     37     </tr>
     38   </table>
     39 </body>
     40 </html>