border-spacing-025

Border-spacing using picas with a minimum plus one value, 1pc

WeasyPrint

This browser

Flags
ahem
Assertion
Border-spacing can be set one above the minimum in picas.

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 using picas with a minimum plus one value, 1pc</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 can be set one above the minimum in picas.">
10         <style type="text/css">
11             div, table
12             {
13                 font: 20px/1 Ahem;
14             }
15             div
16             {
17                 background: black;
18                 height: 1em;
19                 left: 8.5pc;
20                 position: relative;
21                 top: 1pc;
22                 width: 1pc;
23             }
24             table
25             {
26                 border-spacing: 1pc;
27             }
28             td
29             {
30                 padding: 0;
31             }
32         </style>
33     </head>
34     <body>
35         <p>Test passes if the middle block is as wide as the space between the bars.</p>
36         <div></div>
37         <table>
38             <tr>
39                 <td>XXXXXX</td>
40                 <td>XXXXXX</td>
41             </tr>
42         </table>
43     </body>
44 </html>