border-spacing-092.xht (1676B)
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-spacing set to inherit with one value, 1in</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#propdef-border-spacing" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#separated-borders" /> 8 <meta name="flags" content="ahem" /> 9 <meta name="assert" content="Verify that a table with 'border-spacing: inherit' uses its parent container's border-spacing value." /> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style type="text/css"> 12 body 13 { 14 border-spacing: 1in; 15 } 16 div, table 17 { 18 font: 20px/1 Ahem; 19 } 20 div 21 { 22 background: black; 23 height: 1em; 24 left: 216px; 25 position: relative; 26 top: 1in; 27 width: 1in; 28 } 29 table 30 { 31 border-spacing: inherit; 32 } 33 td 34 { 35 padding: 0; 36 } 37 </style> 38 </head> 39 <body> 40 <p>Test passes if the middle bar is as wide as the space between the first and last bars.</p> 41 <div></div> 42 <table> 43 <tr> 44 <td>XXXXXX</td> 45 <td>XXXXXX</td> 46 </tr> 47 </table> 48 </body> 49 </html>