tor-browser

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

table-layout-001.xht (1548B)


      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-layout set to 'auto'</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#propdef-table-layout" />
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#width-layout" />
      8         <meta name="flags" content="ahem" />
      9         <meta name="assert" content="Cell content width is taken into account in the used width of a table when the table has 'table-layout' set to 'auto'." />
     10         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11         <style type="text/css">
     12             table, div
     13             {
     14                 font: 1em Ahem;
     15             }
     16             table
     17             {
     18                 background: black;
     19                 border-spacing: 0;
     20                 table-layout: auto;
     21                 width: 5em;
     22             }
     23             td
     24             {
     25                 padding: 0;
     26             }
     27             div
     28             {
     29                 background: black;
     30                 margin-top: 10px;
     31                 width: 10em;
     32             }
     33         </style>
     34     </head>
     35     <body>
     36         <p>Test passes if both bars below are the same width.</p>
     37         <table>
     38             <tr>
     39                <td>XXXXX</td>
     40                <td>XXXXX</td>
     41             </tr>
     42         </table>
     43         <div>X</div>
     44     </body>
     45 </html>