tor-browser

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

fixed-table-layout-003.xht (1433B)


      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: Cell in the first row with specified width sets the width for the column</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="assert" content="A cell in the first row with specified non-auto 'width' sets the width for its column in the absence of a column element with specified non-auto width." />
      8         <style type="text/css">
      9             table
     10             {
     11                 border-collapse: collapse;
     12                 table-layout: fixed;
     13                 width: 200px;
     14             }
     15             td
     16             {
     17                 padding: 0;
     18             }
     19             #cell
     20             {
     21                 background: black;
     22                 width: 100px;
     23             }
     24             #div1
     25             {
     26                 background: blue;
     27                 height: 1em;
     28                 width: 100px;
     29             }
     30         </style>
     31     </head>
     32     <body>
     33         <p>Test passes if the boxes below are the same width.</p>
     34         <table>
     35             <tr>
     36                 <td id="cell">X</td>
     37                 <td></td>
     38             </tr>
     39         </table>
     40         <div id="div1"></div>
     41     </body>
     42 </html>