border-collapse-applies-to-011

Border-collapse and 'display: table-row' elements

WeasyPrint

This browser

Assertion
Border-collapse does not apply to 'display: table-row' elements.

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 and 'display: table-row' elements</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 does not apply to 'display: table-row' elements.">
10         <style type="text/css">
11             #table
12             {
13                 display: table;
14             }
15             #test
16             {
17                 border-collapse: collapse;
18                 display: table-row;
19             }
20             #left, #right
21             {
22                 display: table-cell;
23                 height: 100px;
24                 width: 100px;
25             }
26             #left
27             {
28                 border-right: 10px solid blue;
29             }
30             #right
31             {
32                 border-left: 10px dotted orange;
33             }
34         </style>
35     </head>
36     <body>
37         <p>Test passes if below there is a vertical solid blue line, and to its right side, a dotted orange line.</p>
38         <div id="table">
39             <div id="test">
40                 <div id="left"></div>
41                 <div id="right"></div>
42             </div>
43         </div>
44     </body>
45 </html>