tor-browser

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

fixed-table-layout-005.xht (2200B)


      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: Leftover table width is divided evenly among auto-sized columns</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="Any remaining horizontal table space is divided evenly among columns which do not have specified widths." />
      8         <style type="text/css">
      9             table
     10             {
     11                 border-spacing: 0;
     12                 table-layout: fixed;
     13                 width: 300px;
     14             }
     15             #col1
     16             {
     17                 width: 50px;
     18             }
     19             td
     20             {
     21                 padding: 0;
     22             }
     23             #cell1
     24             {
     25                 width: 50px;
     26             }
     27             #cell2
     28             {
     29                 width: 100px;
     30             }
     31             #div1
     32             {
     33                 border-top: 1px solid black;
     34                 height: 100px;
     35                 width: 300px;
     36             }
     37             #div1 > div
     38             {
     39                 float: left;
     40             }
     41             .px50
     42             {
     43                 width: 50px;
     44             }
     45             #px100
     46             {
     47                 width: 100px;
     48             }
     49         </style>
     50     </head>
     51     <body>
     52         <p>Test passes if the numbers above the line are aligned with the numbers below the line.</p>
     53         <table>
     54             <col id="col1" />
     55             <col />
     56             <col />
     57             <col />
     58             <col />
     59             <col />
     60             <tr>
     61                 <td>1</td>
     62                 <td id="cell1">2</td>
     63                 <td id="cell2" colspan="2">3</td>
     64                 <td>4</td>
     65                 <td>5</td>
     66            </tr>
     67         </table>
     68         <div id="div1">
     69             <div class="px50">1</div>
     70             <div class="px50">2</div>
     71             <div id="px100">3</div>
     72             <div class="px50">4</div>
     73             <div class="px50">5</div>
     74         </div>
     75     </body>
     76 </html>