collapsing-border-model-002

Collapsing borders model row width equation (auto layout) - subsequent rows with wider borders variation

WeasyPrint

This browser

Assertion
Rows which have wider borders than those of the first table row have their borders spill into the table margins.

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: Collapsing borders model row width equation (auto layout) - subsequent rows with wider borders variation</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#collapsing-borders">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Rows which have wider borders than those of the first table row have their borders spill into the table margins.">
 9         <style type="text/css">
10             table
11             {
12                 border: 10px solid red;
13                 border-collapse: collapse;
14                 margin: 15px;
15             }
16             td
17             {
18                 background: blue;
19                 border: 20px solid blue;
20                 padding: 20px;
21             }
22             .cell
23             {
24                 border: 50px solid black;
25             }
26             div
27             {
28                 background: blue;
29                 position: absolute;
30             }
31         </style>
32     </head>
33     <body>
34         <p>Test passes if the top and bottom blue boxes are the same width as the black box, and there is no red visible on the page.</p>
35         <div>
36         <table>
37             <tr>
38                 <td></td>
39                 <td></td>
40             </tr>
41             <tr>
42                 <td class="cell"></td>
43                 <td class="cell"></td>
44             </tr>
45         </table>
46         </div>
47     </body>
48 </html>