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