border-spacing-inherited-001.xht (1761B)
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 is inherited by default</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="Border-spacing is inherited by default." /> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style type="text/css"> 12 #div1 13 { 14 background: black; 15 height: 1em; 16 left: 2in; 17 position: relative; 18 top: 1in; 19 width: 1in; 20 } 21 #div2 22 { 23 border-spacing: 1in; 24 } 25 #table 26 { 27 display: table; 28 } 29 #row 30 { 31 display: table-row; 32 } 33 .cell 34 { 35 display: table-cell; 36 font-family: Ahem; 37 } 38 </style> 39 </head> 40 <body> 41 <p>Test passes if the middle box is as wide as the space between the first and last boxes.</p> 42 <div id="div1"></div> 43 <div id="div2"> 44 <div id="table"> 45 <div id="row"> 46 <div class="cell">XXXXXX</div> 47 <div class="cell">XXXXXX</div> 48 </div> 49 </div> 50 </div> 51 </body> 52 </html>