fixed-table-layout-006

Remaining table width is divided evenly among non auto-sized columns (minus borders and cell spacing)

WeasyPrint

This browser

Assertion
Any remaining horizontal table space is divided evenly among columns which do not have specified widths (minus borders and cell spacing).

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: Remaining table width is divided evenly among non auto-sized columns (minus borders and cell spacing)</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="">
 8         <meta name="assert" content="Any remaining horizontal table space is divided evenly among columns which do not have specified widths (minus borders and cell spacing).">
 9         <style type="text/css">
10             table
11             {
12                 background: blue;
13                 border-collapse: separate;
14                 border-spacing: 10px 0;
15                 table-layout: fixed;
16                 width: 130px;
17             }
18             td
19             {
20                 background: blue;
21                 border-left: 10px solid orange;
22                 border-right: 10px solid orange;
23                 height: 100px;
24                 padding: 0;
25             }
26             #specified
27             {
28                 width: 10px;
29             }
30         </style>
31     </head>
32     <body>
33         <p>Test passes if all of the blue lines below appear to have the same width.</p>
34             <table>
35                 <tr>
36                     <td id="specified"></td>
37                     <td></td>
38                     <td></td>
39                </tr>
40             </table>
41     </body>
42 </html>