Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / 20110323 / border-conflict-element-006.htm
blob1d1a7c1b2d014fce449946dfce6a998a7d06f88c
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): cell vs. row 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 (cell, row group) of same border-style and width, border collapsing favors the cell.">
9 <style type="text/css">
10 table
12 border-collapse: collapse;
13 height: 2in;
14 width: 2in;
16 tbody
18 border-left: 5px solid black;
19 border-right: 5px solid black;
21 #collapsing1
23 border-bottom: 5px solid red;
24 border-top: 5px solid black;
26 #collapsing2
28 border-bottom: 5px solid black;
29 border-top: 5px solid red;
31 #test
33 border: 5px solid black;
35 </style>
36 </head>
37 <body>
38 <p>Test passes if there is no red visible on the page.</p>
39 <table>
40 <tbody id="collapsing1">
41 <tr>
42 <td></td>
43 </tr>
44 </tbody>
45 <tbody>
46 <tr>
47 <td id="test"></td>
48 </tr>
49 </tbody>
50 <tbody id="collapsing2">
51 <tr>
52 <td></td>
53 </tr>
54 </tbody>
55 </table>
56 </body>
57 </html>