collapsing-border-model-001

Collapsing borders model row width equation (auto layout)

WeasyPrint

This browser

Assertion
The user agent adheres to the collapsing border model row width equation in auto table layout.

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)</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="The user agent adheres to the collapsing border model row width equation in auto table layout.">
 9         <style type="text/css">
10             table
11             {
12                 border: 25px solid red;
13                 border-collapse: collapse;
14             }
15             td
16             {
17                 background: blue;
18                 border: 50px solid blue;
19                 padding: 10px;
20                 width: 100px;
21             }
22             #div1
23             {
24                 background: orange;
25                 height: 110px;
26                 width: 220px;
27             }
28         </style>
29     </head>
30     <body>
31         <p>Test passes if the orange and blue boxes below are the same width.</p>
32         <div id="div1"></div>
33         <table>
34             <tr>
35                 <td></td>
36             </tr>
37         </table>
38     </body>
39 </html>