border-spacing-092

Border-spacing set to inherit with one value, 1in

WeasyPrint

This browser

Flags
ahem
Assertion
Verify that a table with 'border-spacing: inherit' uses its parent container's border-spacing value.

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 set to inherit with one value, 1in</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="Verify that a table with 'border-spacing: inherit' uses its parent container's border-spacing value.">
10         <style type="text/css">
11             body
12             {
13                 border-spacing: 1in;
14             }
15             div, table
16             {
17                 font: 20px/1 Ahem;
18             }
19             div
20             {
21                 background: black;
22                 height: 1em;
23                 left: 216px;
24                 position: relative;
25                 top: 1in;
26                 width: 1in;
27             }
28             table
29             {
30                 border-spacing: inherit;
31             }
32             td
33             {
34                 padding: 0;
35             }
36         </style>
37     </head>
38     <body>
39         <p>Test passes if the middle bar is as wide as the space between the first and last bars.</p>
40         <div></div>
41         <table>
42             <tr>
43                 <td>XXXXXX</td>
44                 <td>XXXXXX</td>
45             </tr>
46         </table>
47     </body>
48 </html>