Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / 20110323 / border-conflict-element-012.htm
blobd4cf117d2333cbe591c4f2232286c922e9f44b5a
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. cell - 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, cell) 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 #test
18 border-bottom: 5px solid red;
19 border-top: 5px solid red;
23 border-left: 5px solid black;
24 border-right: 5px solid black;
26 .winning
28 border-bottom: 5px solid black;
29 border-top: 5px solid black;
31 </style>
32 </head>
33 <body>
34 <p>Test passes if there is no red visible on the page.</p>
35 <table>
36 <tr>
37 <td class="winning"></td>
38 <td class="winning"></td>
39 <td class="winning"></td>
40 </tr>
41 <tr id="test">
42 <td></td>
43 <td></td>
44 <td></td>
45 </tr>
46 <tr>
47 <td class="winning"></td>
48 <td class="winning"></td>
49 <td class="winning"></td>
50 </tr>
51 </table>
52 </body>
53 </html>