border-collapse-inherited-001

Border-collapse is inherited by default

WeasyPrint

This browser

Assertion
Border-collapse is inherited by default.

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 is inherited by default</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="Border-collapse is inherited by default.">
10         <style type="text/css">
11             #container
12             {
13                 border-collapse: collapse;
14             }
15             #table
16             {
17                 background: red;
18                 border-spacing: 10px;
19                 border-style: none;
20                 display: table;
21             }
22             .row
23             {
24                 display: table-row;
25             }
26             .cell
27             {
28                 background: black;
29                 border: 3px solid black;
30                 display: table-cell;
31             }
32         </style>
33     </head>
34     <body>
35         <p>Test passes if there is a single box below and there is no red visible on the page.</p>
36         <div id="container">
37             <div id="table">
38                 <div class="row">
39                     <div class="cell">XXXXX</div>
40                     <div class="cell">XXXXX</div>
41                 </div>
42                 <div class="row">
43                     <div class="cell">XXXXX</div>
44                     <div class="cell">XXXXX</div>
45                 </div>
46             </div>
47         </div>
48     </body>
49 </html>