border-conflict-style-084.xht (1775B)
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): 'ridge' 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 'ridge' border is the dominant border when it is collapsed with a 'groove' border of the same size." /> 8 <style type="text/css"> 9 #table1 10 { 11 margin-bottom: 20px; 12 } 13 table 14 { 15 border-collapse: collapse; 16 } 17 td 18 { 19 border: 5px ridge lime; 20 height: 3em; 21 width: 3em; 22 } 23 #center 24 { 25 border: 5px groove red; 26 } 27 </style> 28 </head> 29 <body> 30 <p>Test passes if the center box in the table below has a border similar to this:</p> 31 <table id="table1"> 32 <tr> 33 <td></td> 34 </tr> 35 </table> 36 <table> 37 <tr> 38 <td>ridge</td> 39 <td>ridge</td> 40 <td>ridge</td> 41 </tr> 42 <tr> 43 <td>ridge</td> 44 <td id="center">groove</td> 45 <td>ridge</td> 46 </tr> 47 <tr> 48 <td>ridge</td> 49 <td>ridge</td> 50 <td>ridge</td> 51 </tr> 52 </table> 53 </body> 54 </html>