border-spacing-inherited-001

Border-spacing is inherited by default

WeasyPrint

This browser

Flags
ahem
Assertion
Border-spacing is inherited by default.

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