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. row - 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 adjacent elements (row, row) of same border-style and width, border collapsing favors the row furthest to the top.">
9 <style type="text/css">
10 table
11 {
12 border-collapse: collapse;
13 height: 2in;
14 width: 2in;
15 }
16 tr
17 {
18 border-bottom: 5px solid black;
19 border-top: 5px solid black;
20 }
21 .collapsing
22 {
23 border-top: 5px solid red;
24 }
25 td
26 {
27 border-left: 5px solid black;
28 border-right: 5px solid black;
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 class="collapsing">
41 <td></td>
42 <td></td>
43 <td></td>
44 </tr>
45 <tr class="collapsing">
46 <td></td>
47 <td></td>
48 <td></td>
49 </tr>
50 </table>
51 </body>
52 </html>