tor-browser

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

fixed-table-layout-014.xht (1646B)


      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 - specified column width overrides specified column-group width</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 column that has both a column width and column-group width specified will use its column specified width." />
      8         <style type="text/css">
      9             table
     10             {
     11                 border-collapse: collapse;
     12                 table-layout: fixed;
     13                 width: 100px;
     14             }
     15             #colgroup
     16             {
     17                 width: 300px;
     18             }
     19             #cell
     20             {
     21                 background: black;
     22             }
     23             #div1
     24             {
     25                 background: blue;
     26             }
     27             #div1, #cell
     28             {
     29                 height: 1em;
     30             }
     31             #div1, #col
     32             {
     33                 width: 100px;
     34             }
     35         </style>
     36     </head>
     37     <body>
     38         <p>Test passes if the boxes below are the same width.</p>
     39         <table>
     40             <colgroup id="colgroup">
     41                 <col id="col" />
     42             </colgroup>
     43             <colgroup>
     44                 <col />
     45             </colgroup>
     46             <tr>
     47                 <td id="cell"></td>
     48                 <td></td>
     49            </tr>
     50         </table>
     51         <div id="div1"></div>
     52     </body>
     53 </html>