tor-browser

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

fixed-table-layout-001.xht (1511B)


      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: Fixed table layout when 'width' property is '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#fixed-table-layout" />
      7         <meta name="flags" content="ahem" />
      8         <meta name="assert" content="If a browser supports fixed table layout when 'width' is 'auto', a table will size to its containing block, minus any margin space (modified example from spec section 17.5.2.1)." />
      9         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     10         <style type="text/css">
     11             #div1
     12             {
     13                 border: solid blue;
     14                 width: 200px;
     15             }
     16             table
     17             {
     18                 border-collapse: collapse;
     19                 margin-left: 50px;
     20                 margin-right: 50px;
     21                 table-layout: fixed;
     22             }
     23             td
     24             {
     25                 font: 62.8% Ahem;
     26                 padding: 0;
     27             }
     28         </style>
     29     </head>
     30     <body>
     31         <p>Test passes if the black box is centered within the blue box below.</p>
     32         <div id="div1">
     33             <table>
     34                 <tr>
     35                     <td>XXXXXXXXXX</td>
     36                 </tr>
     37             </table>
     38         </div>
     39     </body>
     40 </html>