tor-browser

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

table-layout-inherited-001.xht (1924B)


      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 is not inherited by default</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="Table-layout is not inherited by default." />
     10         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11         <style type="text/css">
     12             div
     13             {
     14                 font: 20px/1em Ahem;
     15             }
     16             #div1
     17             {
     18                 table-layout: fixed;
     19             }
     20             table
     21             {
     22                 background: black;
     23                 border-spacing: 0;
     24                 width: 10em;
     25             }
     26             colgroup
     27             {
     28                 width: 5em;
     29             }
     30             td
     31             {
     32                 overflow: hidden;
     33                 padding: 0;
     34             }
     35             #div2
     36             {
     37                 background: blue;
     38                 height: 2em;
     39                 width: 20em;
     40             }
     41         </style>
     42     </head>
     43     <body>
     44         <p>Test passes if the black box is at least as wide as the blue box.</p>
     45         <div id="div1">
     46             <table>
     47                 <colgroup></colgroup>
     48                 <colgroup></colgroup>
     49                 <tr>
     50                     <td>XXXXX</td>
     51                     <td>XXXXX</td>
     52                 </tr>
     53                 <tr>
     54                    <td>XXXXXXXXX0</td>
     55                    <td>XXXXXXXXX0</td>
     56                 </tr>
     57             </table>
     58         </div>
     59         <div id="div2"></div>
     60     </body>
     61 </html>