tor-browser

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

table-height-algorithm-003.xht (2249B)


      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: Specified row height is treated as minimum row height</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 specified row height value is treated as the minimum height of the row." />
      9         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     10         <style type="text/css">
     11             #ruler
     12             {
     13                 background: black;
     14                 font: 16px/1em Ahem;
     15                 height: 10em;
     16                 width: 20em;
     17             }
     18             table
     19             {
     20                 border-spacing: 0;
     21             }
     22             .t1
     23             {
     24                 background: blue;
     25                 color: blue;
     26             }
     27             .t2
     28             {
     29                 background: purple;
     30                 color: purple;
     31             }
     32             .r1
     33             {
     34                 height: 0.5em;
     35             }
     36             .r2
     37             {
     38                 height: 5em;
     39             }
     40             td
     41             {
     42                 padding: 0;
     43             }
     44         </style>
     45     </head>
     46     <body>
     47         <p>Test passes if the blue and purple boxes below are half the height of the black box.</p>
     48         <div id="ruler">
     49             <table class="t1">
     50                 <tr class="r1">
     51                     <td>XXXXXXXXXX</td>
     52                 </tr>
     53                 <tr class="r1">
     54                     <td>XXXXXXXXXX</td>
     55                 </tr>
     56                 <tr class="r1">
     57                     <td>XXXXXXXXXX</td>
     58                 </tr>
     59                 <tr class="r1">
     60                     <td>XXXXXXXXXX</td>
     61                 </tr>
     62                 <tr class="r1">
     63                     <td>XXXXXXXXXX</td>
     64                 </tr>
     65             </table>
     66             <table class="t2">
     67                 <tr class="r2">
     68                     <td>XXXXXXXXXX</td>
     69                 </tr>
     70             </table>
     71         </div>
     72     </body>
     73 </html>