1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
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="flags" content="">
9 <meta name="assert" content="Border-spacing does not apply to 'display: inline' elements.">
10 <style type="text/css">
11 #parent
12 {
13 width: 10em;
14 }
15 .inline
16 {
17 color: white;
18 display: inline;
19 }
20 .test
21 {
22 border: 10px solid blue;
23 border-spacing: 20px;
24 }
25 .reference
26 {
27 border: 10px solid orange;
28 }
29 #spacer
30 {
31 margin: 25px;
32 }
33 </style>
34 </head>
35 <body>
36 <p>Test passes if the vertical space between the two blue boxes is the same as the space between the two orange boxes.</p>
37 <div id="parent">
38 <div class="inline test">XXXXX</div><div class="inline reference">XXXXX</div>
39 <div id="spacer"></div>
40 <div class="inline test">XXXXX</div><div class="inline reference">XXXXX</div>
41 </div>
42 </body>
43 </html>