border-conflict-style-055.xht (1959B)
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 border style): 'inset' vs. 'hidden' - border with highest priority border style should dominate</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="The 'hidden' border is the dominant border when it is collapsed with an 'inset' border." /> 8 <style type="text/css"> 9 table 10 { 11 border-collapse: collapse; 12 } 13 td 14 { 15 border: 5px inset lime; 16 height: 3em; 17 width: 3em; 18 } 19 #center 20 { 21 border: 5px hidden red; 22 } 23 #top 24 { 25 border-top: 5px inset red; 26 } 27 #left 28 { 29 border-left: 5px inset red; 30 } 31 #bottom 32 { 33 border-bottom: 5px inset red; 34 } 35 #right 36 { 37 border-right: 5px inset red; 38 } 39 </style> 40 </head> 41 <body> 42 <p>Test passes if the center box in the table below has no border.</p> 43 <table> 44 <tr> 45 <td>inset</td> 46 <td id="bottom">inset</td> 47 <td>inset</td> 48 </tr> 49 <tr> 50 <td id="right">inset</td> 51 <td id="center">hidden</td> 52 <td id="left">inset</td> 53 </tr> 54 <tr> 55 <td>inset</td> 56 <td id="top">inset</td> 57 <td>inset</td> 58 </tr> 59 </table> 60 </body> 61 </html>