border-conflict-element-016

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

WeasyPrint

This browser

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

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): row vs. column - 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 (row, column) of same border-style and width, border collapsing favors the row.">
 9         <style type="text/css">
10             table
11             {
12                 border-collapse: collapse;
13                 height: 2in;
14                 width: 2in;
15             }
16             col
17             {
18                 border: 5px solid red;
19             }
20             tr
21             {
22                 border: 5px solid black;
23             }
24         </style>
25     </head>
26     <body>
27         <p>Test passes if there is no red visible on the page.</p>
28         <table>
29             <col>
30             <tr>
31                 <td></td>
32             </tr>
33         </table>
34     </body>
35 </html>