border-collapse-applies-to-008

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

WeasyPrint

This browser

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