border-spacing-applies-to-005

Border-spacing and 'display: inline-block' elements

WeasyPrint

This browser

Assertion
Border-spacing does not apply to 'display: inline-block' elements.

Source

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