border-collapse-003

Border-collapse set to 'inherit'

WeasyPrint

This browser

Assertion
A table can inherit its 'border-collapse' behavior from its parent container.

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: Border-collapse set to 'inherit'</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#propdef-border-collapse">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#borders">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="A table can inherit its 'border-collapse' behavior from its parent container.">
10         <style type="text/css">
11             #parent
12             {
13                 border-collapse: collapse;
14             }
15             table
16             {
17                 border-collapse: inherit;
18                 border-spacing: 3px;
19                 border-style: none;
20             }
21             td
22             {
23                 background: black;
24                 border: 5px solid black;
25             }
26         </style>
27     </head>
28     <body>
29         <p>Test passes if a single box appears below this line.</p>
30         <div id="parent">
31         <table>
32             <tr>
33                 <td>XXXXX</td>
34                 <td>XXXXX</td>
35             </tr>
36             <tr>
37                 <td>XXXXX</td>
38                 <td>XXXXX</td>
39             </tr>
40         </table>
41         </div>
42     </body>
43 </html>