border-conflict-style-071.xht (2209B)
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): 'outset' vs. 'dashed' - 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 'dashed' border is the dominant border when it is collapsed with a 'outset' 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 outset lime; 20 height: 3em; 21 width: 3em; 22 } 23 #center, #table1 td 24 { 25 border: 5px dashed lime; 26 } 27 #top 28 { 29 border-top: 5px outset red; 30 } 31 #left 32 { 33 border-left: 5px outset red; 34 } 35 #bottom 36 { 37 border-bottom: 5px outset red; 38 } 39 #right 40 { 41 border-right: 5px outset red; 42 } 43 </style> 44 </head> 45 <body> 46 <p>Test passes if the center box in the table below has a border similar to this:</p> 47 <table id="table1"> 48 <tr> 49 <td></td> 50 </tr> 51 </table> 52 <table> 53 <tr> 54 <td>outset</td> 55 <td id="bottom">outset</td> 56 <td>outset</td> 57 </tr> 58 <tr> 59 <td id="right">outset</td> 60 <td id="center">dashed</td> 61 <td id="left">outset</td> 62 </tr> 63 <tr> 64 <td>outset</td> 65 <td id="top">outset</td> 66 <td>outset</td> 67 </tr> 68 </table> 69 </body> 70 </html>