tor-browser

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

fixed-table-layout-013.xht (1506B)


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