border-conflict-element-002

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

WeasyPrint

This browser

Assertion
With adjacent cells of same border-style and width, border collapsing favors the cell furthest to the top right for 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 (element) - cell vs. cell - 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 cells of same border-style and width, border collapsing favors the cell furthest to the top right for 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             td
18             {
19                 border: 5px solid black;
20                 direction: ltr;
21             }
22             .collapsing1
23             {
24                 border-right: red;
25             }
26             #collapsing2
27             {
28                 border-top: red;
29             }
30         </style>
31     </head>
32     <body>
33         <p>Test passes if there is no red visible on the page.</p>
34         <table>
35             <tr>
36                 <td></td>
37                 <td></td>
38                 <td></td>
39             </tr>
40             <tr>
41                 <td></td>
42                 <td class="collapsing1"></td>
43                 <td class="collapsing1"></td>
44             </tr>
45             <tr>
46                 <td></td>
47                 <td id="collapsing2"></td>
48                 <td></td>
49             </tr>
50         </table>
51     </body>
52 </html>