collapsing-border-model-007.xht (1488B)
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: Left table border width under collapsing borders model</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#collapsing-borders" /> 7 <link rel="match" href="collapsing-border-model-001-ref.html" /> 8 <meta name="assert" content="The left border width of the table is half of the first cell's collapsed left border width." /> 9 <style type="text/css"> 10 table 11 { 12 background: blue; 13 border-collapse: collapse; 14 } 15 col 16 { 17 width: 165px; 18 } 19 td, #div1 20 { 21 height: 120px; 22 } 23 td 24 { 25 width: 110px; 26 border-left: 110px solid blue; 27 padding: 0; 28 } 29 #div1 30 { 31 background: orange; 32 width: 220px; 33 } 34 </style> 35 </head> 36 <body> 37 <p>Test passes if the orange and blue boxes below are the same width.</p> 38 <div id="div1"></div> 39 <table> 40 <col /> 41 <tr> 42 <td></td> 43 </tr> 44 </table> 45 </body> 46 </html>