border-conflict-style-054.xht (2313B)
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. 'groove' - 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 'groove' border is the dominant border when it is collapsed with an 'inset' border of the same size." /> 8 <style type="text/css"> 9 #table1 10 { 11 margin-bottom: 20px; 12 } 13 #winner 14 { 15 border: 5px groove black; 16 width: 3em; 17 } 18 table 19 { 20 border-collapse: collapse; 21 } 22 td 23 { 24 border: 5px inset lime; 25 height: 3em; 26 width: 3em; 27 } 28 #center, #table1 td 29 { 30 border: 5px groove lime; 31 } 32 #top 33 { 34 border-top: 5px inset red; 35 } 36 #left 37 { 38 border-left: 5px inset red; 39 } 40 #bottom 41 { 42 border-bottom: 5px inset red; 43 } 44 #right 45 { 46 border-right: 5px inset red; 47 } 48 </style> 49 </head> 50 <body> 51 <p>Test passes if the center box in the table below has a border similar to this:</p> 52 <table id="table1"> 53 <tr> 54 <td></td> 55 </tr> 56 </table> 57 <table> 58 <tr> 59 <td>inset</td> 60 <td id="bottom">inset</td> 61 <td>inset</td> 62 </tr> 63 <tr> 64 <td id="right">inset</td> 65 <td id="center">groove</td> 66 <td id="left">inset</td> 67 </tr> 68 <tr> 69 <td>inset</td> 70 <td id="top">inset</td> 71 <td>inset</td> 72 </tr> 73 </table> 74 </body> 75 </html>