border-conflict-element-032

Border Conflict Resolution (by element): column vs. table - element with highest priority is the dominant border

WeasyPrint

This browser

Assertion
With embedded elements (column, table) of same border-style and width, border collapsing favors the column.

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 Conflict Resolution (by element): column vs. table - element with highest priority is the dominant border</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#border-conflict-resolution">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="With embedded elements (column, table) of same border-style and width, border collapsing favors the column.">
 9         <style type="text/css">
10             table
11             {
12                 border: 5px solid red;
13                 border-collapse: collapse;
14                 height: 2in;
15                 width: 2in;
16             }
17             col
18             {
19                 border: 5px solid black;
20             }
21         </style>
22     </head>
23     <body>
24         <p>Test passes if there is no red visible on the page.</p>
25         <table>
26             <col>
27             <tr>
28                 <td></td>
29             </tr>
30         </table>
31     </body>
32 </html>