border-spacing-093

Border-spacing set to inherit with two values, 50px 5px

WeasyPrint

This browser

Flags
ahem
Assertion
Verify that a table with 'border-spacing: inherit' uses both of its parent container's border-spacing values if two are specified.

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 two values, 50px 5px</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 both of its parent container's border-spacing values if two are specified.">
10         <style type="text/css">
11             body
12             {
13                 border-spacing: 50px 5px;
14             }
15             table
16             {
17                 border-spacing: inherit;
18                 font: 20px/1 Ahem;
19             }
20             td
21             {
22                 padding: 0;
23             }
24         </style>
25     </head>
26     <body>
27         <p>Test passes if four bars appear, and the horizontal space between them is greater than the vertical space between them.</p>
28         <table>
29             <tr>
30                 <td>XXXXXX</td>
31                 <td>XXXXXX</td>
32             </tr>
33             <tr>
34                 <td>XXXXXX</td>
35                 <td>XXXXXX</td>
36             </tr>
37         </table>
38     </body>
39 </html>