border-conflict-element-011.xht (1157B)
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 (by element): cell vs. table - 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 embedded elements (cell, table) of same border-style and width, border collapsing favors the cell." /> 8 <style type="text/css"> 9 table 10 { 11 border: 5px solid red; 12 border-collapse: collapse; 13 height: 2in; 14 width: 2in; 15 } 16 td 17 { 18 border: 5px solid black; 19 } 20 </style> 21 </head> 22 <body> 23 <p>Test passes if there is no red visible on the page.</p> 24 <table> 25 <tr> 26 <td></td> 27 </tr> 28 </table> 29 </body> 30 </html>