tor-browser

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

table-layout-003.xht (1734B)


      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 'inherit'</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="A table can inherit its 'table-layout' behavior from its parent container." />
     10         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11         <style type="text/css">
     12             #container
     13             {
     14                 table-layout: fixed;
     15             }
     16             table, #reference
     17             {
     18                 font: 1em Ahem;
     19             }
     20             table
     21             {
     22                 background: black;
     23                 border-spacing: 0;
     24                 overflow: hidden;
     25                 table-layout: inherit;
     26                 width: 5em;
     27             }
     28             td
     29             {
     30                 padding: 0;
     31             }
     32             #reference
     33             {
     34                 background: black;
     35                 margin-top: 10px;
     36                 width: 5em;
     37             }
     38         </style>
     39     </head>
     40     <body>
     41         <p>Test passes if both bars below are the same width.</p>
     42         <div id="container">
     43             <table>
     44                 <tr>
     45                    <td>XXXXXXXX</td>
     46                    <td>XXXXXXXX</td>
     47                 </tr>
     48             </table>
     49         </div>
     50         <div id="reference">X</div>
     51     </body>
     52 </html>