border-collapse-001

Border-collapse set to 'collapse'

WeasyPrint

This browser

Assertion
A table with 'border-collapse' set to 'collapse' collapses the borders between its cells.

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 'collapse'</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 with 'border-collapse' set to 'collapse' collapses the borders between its cells.">
10         <style type="text/css">
11             table
12             {
13                 border-collapse: collapse;
14                 border-spacing: 5px;
15             }
16             td
17             {
18                 background: black;
19                 border: 5px solid black;
20             }
21         </style>
22     </head>
23     <body>
24         <p>Test passes if a single box appears below this line.</p>
25         <table>
26             <tr>
27                 <td>XXXXX</td>
28                 <td>XXXXX</td>
29             </tr>
30             <tr>
31                 <td>XXXXX</td>
32                 <td>XXXXX</td>
33             </tr>
34         </table>
35     </body>
36 </html>