border-conflict-element-001.xht (1677B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Border Conflict Resolution (element) - cell 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="assert" content="With adjacent cells of same border-style and width, border collapsing favors the cell furthest to the top and left (in a 'left-to-right' table)." /> 8 <style type="text/css"> 9 table 10 { 11 border-collapse: collapse; 12 height: 2in; 13 width: 2in; 14 } 15 td 16 { 17 border: 5px solid black; 18 } 19 .collapsing1 20 { 21 border-left-color: red; 22 } 23 #collapsing2 24 { 25 border-top-color: red; 26 } 27 </style> 28 </head> 29 <body> 30 <p>Test passes if there is no red visible on the page.</p> 31 <table> 32 <tr> 33 <td></td> 34 <td></td> 35 <td></td> 36 </tr> 37 <tr> 38 <td></td> 39 <td class="collapsing1"></td> 40 <td class="collapsing1"></td> 41 </tr> 42 <tr> 43 <td></td> 44 <td id="collapsing2"></td> 45 <td></td> 46 </tr> 47 </table> 48 </body> 49 </html>