border-conflict-element-029

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

WeasyPrint

This browser

Assertion
With adjacent elements (column, column) of same border-style and width, border collapsing favors the column farthest to the right in a 'right-to-left' table.

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. column - element with highest priority is the dominant border (rtl table)</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 adjacent elements (column, column) of same border-style and width, border collapsing favors the column farthest to the right in a 'right-to-left' table.">
 9         <style type="text/css">
10             table
11             {
12                 border-collapse: collapse;
13                 direction: rtl;
14                 height: 2in;
15                 width: 2in;
16             }
17             col
18             {
19                 border-bottom: 5px solid black;
20                 border-top: 5px solid black;
21             }
22             #winning
23             {
24                 border-left: 5px solid black;
25                 border-right: 5px solid black;
26             }
27             .collapsing
28             {
29                  border-left: 5px solid black;
30                  border-right: 5px solid red;
31             }
32             td
33             {
34                 direction: ltr;
35             }
36         </style>
37     </head>
38     <body>
39         <p>Test passes if there is no red visible on the page.</p>
40         <table>
41             <col id="winning">
42             <col class="collapsing">
43             <col class="collapsing">
44             <tr>
45                 <td></td>
46                 <td></td>
47                 <td></td>
48             </tr>
49         </table>
50     </body>
51 </html>