tor-browser

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

table-height-algorithm-001.xht (1601B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3     <head>
      4         <title>CSS Test: Table height of 'auto' equals sum of row heights, cell spacing and borders</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#height-layout" />
      7         <meta name="flags" content="ahem" />
      8         <meta name="assert" content="A table height of 'auto' equals the sum of the row heights plus any cell spacing and borders." />
      9         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     10         <style type="text/css">
     11             div
     12             {
     13                 font: 20px/1em Ahem;
     14             }
     15             #reference
     16             {
     17                 background: blue;
     18                 height: 13em;
     19                 width: 12em;
     20             }
     21             table
     22             {
     23                 background: black;
     24                 border-spacing: 1em;
     25                 height: auto;
     26                 padding: 0;
     27             }
     28             td
     29             {
     30                 border: 1em solid black;
     31                 padding: 1em;
     32             }
     33         </style>
     34     </head>
     35     <body>
     36         <p>Test passes if the boxes below are the same height.</p>
     37         <div id="reference">
     38             <table>
     39                 <tr>
     40                     <td>X</td>
     41                 </tr>
     42                 <tr>
     43                     <td>X</td>
     44                 </tr>
     45             </table>
     46         </div>
     47     </body>
     48 </html>