border-spacing-applies-to-001.xht (1580B)
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 and 'display: inline' elements</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="assert" content="Border-spacing does not apply to 'display: inline' elements." /> 9 <style type="text/css"> 10 #parent 11 { 12 width: 10em; 13 } 14 .inline 15 { 16 color: white; 17 display: inline; 18 } 19 .test 20 { 21 border: 10px solid blue; 22 border-spacing: 20px; 23 } 24 .reference 25 { 26 border: 10px solid orange; 27 } 28 #spacer 29 { 30 margin: 25px; 31 } 32 </style> 33 </head> 34 <body> 35 <p>Test passes if the vertical space between the two blue boxes is the same as the space between the two orange boxes.</p> 36 <div id="parent"> 37 <div class="inline test">XXXXX</div><div class="inline reference">XXXXX</div> 38 <div id="spacer"></div> 39 <div class="inline test">XXXXX</div><div class="inline reference">XXXXX</div> 40 </div> 41 </body> 42 </html>