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 group - 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 (column, column group) of same border-style and width, border collapsing favors the column.">
9 <style type="text/css">
10 table
11 {
12 border-collapse: collapse;
13 height: 2in;
14 width: 2in;
15 }
16 #collapsing1
17 {
18 border-left: 5px solid black;
19 border-right: 5px solid red;
20 }
21 #collapsing2
22 {
23 border-left: 5px solid red;
24 border-right: 5px solid black;
25 }
26 col
27 {
28 border-bottom: 5px solid black;
29 border-top: 5px solid black;
30 }
31 #test
32 {
33 border-left: 5px solid black;
34 border-right: 5px solid black;
35 }
36 </style>
37 </head>
38 <body>
39 <p>Test passes if there is no red visible on the page.</p>
40 <table>
41 <colgroup id="collapsing1">
42 <col>
43 </colgroup>
44 <colgroup>
45 <col id="test">
46 </colgroup>
47 <colgroup id="collapsing2">
48 <col>
49 </colgroup>
50 <tr>
51 <td></td>
52 <td></td>
53 <td></td>
54 </tr>
55 </table>
56 </body>
57 </html>