collapsing-border-model-004

Tables under the collapsing borders model don't have padding

WeasyPrint

This browser

Assertion
Padding doesn't apply to a table under the collapsing border model.

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