border-conflict-width-046.xht (1977B)
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 width): 'hidden' vs. 'inset' - a border style of 'hidden' is always the dominant border</title> 5 <link rel="author" title="W3C" href="http://www.w3c.org/" /> 6 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" /> 8 <meta name="assert" content="The 'hidden' border style takes precedence over all style and width definitions." /> 9 <style type="text/css"> 10 table 11 { 12 border-collapse: collapse; 13 } 14 td 15 { 16 border: 5px hidden black; 17 height: 3em; 18 } 19 #cell3 20 { 21 border: 10px inset black; 22 } 23 #cell1 24 { 25 border-bottom-color: red; 26 } 27 #cell4 28 { 29 border-left-color: red; 30 } 31 #cell5 32 { 33 border-top-color: red; 34 } 35 #cell2 36 { 37 border-right-color: red; 38 } 39 </style> 40 </head> 41 <body> 42 <p>Test passes if there is no red visible on the page.</p> 43 <table> 44 <tr> 45 <td>hidden</td> 46 <td id="cell1">hidden</td> 47 <td>hidden</td> 48 </tr> 49 <tr> 50 <td id="cell2">hidden</td> 51 <td id="cell3">inset</td> 52 <td id="cell4">hidden</td> 53 </tr> 54 <tr> 55 <td>hidden</td> 56 <td id="cell5">hidden</td> 57 <td>hidden</td> 58 </tr> 59 </table> 60 </body> 61 </html>