6 table {border-collapse: collapse;}
7 td { width:
50px; height:
50px; border:
1em solid; }
8 .orange { border-color: orange; }
9 .first { border-color: green; }
10 .second { border-color: blue; }
15 <p>Test for Bugzilla
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=86885">Bug
86885</a>: CSS2.1 failure: border-conflict-element021a.
</p>
16 <p>When two adjacent table row groups (thead, tbody, tfoot) have the same border-width and the same border-style in a 'border-collapse: collapse' table, then the color of the border from the topmost table row group wins: so, a thead wins over a tbody which wins over tfoot.
</p>
17 <p>This test verifies the aforementioned sceanario when more than one header and/or footer is specified. The first thead specified in the page should be rendered at the top of the table; similarly the first tfoot specified in the page should be rendered as the last section of the table. In this case both the top-most and the bottom-most sections should be displayed in green color. Also, there should be no overlap of border-colors at the corners.
</p>
20 <tr><td class=
"first"></td></tr>
21 <tr><td class=
"second"></td></tr>
22 <tr><td class=
"orange"></td></tr>
23 <tr><td class=
"second"></td></tr>
24 <tr><td class=
"first"></td></tr>