border-conflict-element-019.xht (2022B)
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): row group 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 embedded elements (row group, cell) of same border-style and width, border collapsing favors the cell." /> 8 <style type="text/css"> 9 table 10 { 11 border-collapse: collapse; 12 height: 2in; 13 width: 2in; 14 } 15 #test 16 { 17 border-bottom: 5px solid red; 18 border-top: 5px solid red; 19 } 20 td 21 { 22 border-left: 5px solid black; 23 border-right: 5px solid black; 24 } 25 .winning 26 { 27 border-bottom: 5px solid black; 28 border-top: 5px solid black; 29 } 30 </style> 31 </head> 32 <body> 33 <p>Test passes if there is no red visible on the page.</p> 34 <table> 35 <tbody> 36 <tr> 37 <td class="winning"></td> 38 <td class="winning"></td> 39 <td class="winning"></td> 40 </tr> 41 </tbody> 42 <tbody id="test"> 43 <tr> 44 <td></td> 45 <td></td> 46 <td></td> 47 </tr> 48 </tbody> 49 <tbody> 50 <tr> 51 <td class="winning"></td> 52 <td class="winning"></td> 53 <td class="winning"></td> 54 </tr> 55 </tbody> 56 </table> 57 </body> 58 </html>