tor-browser

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

table-height-algorithm-029.xht (1882B)


      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 cells with different 'vertical-align' values</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="assert" content="A table can have cells with different 'vertical-align' values." />
      8         <style type="text/css">
      9             table
     10             {
     11                 border-spacing: 0;
     12                 height: 10em;
     13             }
     14             tr
     15             {
     16                 vertical-align: top;
     17             }
     18             td
     19             {
     20                 border: 1px solid black;
     21                 font-size: 1em;
     22                 padding: 0;
     23                 vertical-align: baseline;
     24             }
     25             #larger
     26             {
     27                 font-size: 3em;
     28             }
     29             #middle
     30             {
     31                 vertical-align: middle;
     32             }
     33             #bottom
     34             {
     35                 vertical-align: bottom;
     36             }
     37             #inherit
     38             {
     39                 vertical-align: inherit;
     40             }
     41          </style>
     42      </head>
     43      <body>
     44         <p>Test passes if from left-to-right, the bottoms of the first two letters "X" are aligned, the third letter "X" is at the top of its box, the fourth "X" is in the middle of its box, and the fifth "X" is at the bottom of its box.</p>
     45         <table>
     46             <tr>
     47                 <td>X</td>
     48                 <td>
     49                     <div id="larger">X</div>
     50                 </td>
     51                 <td id="inherit">X</td>
     52                 <td id="middle">X</td>
     53                 <td id="bottom">X</td>
     54             </tr>
     55         </table>
     56     </body>
     57 </html>