border-collapse-applies-to-015

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

WeasyPrint

This browser

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