border-conflict-example-002.xht (1451B)
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 - borders are collapsed according to the precedence rules (example 2)</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="flags" content="image" /> 8 <meta name="assert" content="Borders are collapsed according to the precedence rules (example from spec section 17.6.2.1)." /> 9 <style type="text/css"> 10 </style> 11 </head> 12 <body> 13 <table style="border-collapse: collapse; border: solid;"> 14 <tr> 15 <td style="border-right: hidden; border-bottom: hidden">foo</td> 16 <td style="border: solid">bar</td> 17 </tr> 18 <tr> 19 <td style="border: none">foo</td> 20 <td style="border: solid">bar</td> 21 </tr> 22 </table> 23 <p>Test passes if the tables above has the same border outlines as the tables below. (Note: border and cell shading may vary between the two tables.)</p> 24 <div> 25 <img alt="Illustration of proper border collapsing (from spec)" src="support/border_conflict_example_002.png" /> 26 </div> 27 </body> 28 </html>