border-spacing-047

Border-spacing using millimeters with a minimum plus one value, 1mm

WeasyPrint

This browser

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

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 millimeters with a minimum plus one value, 1mm</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 millimeters.">
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: 124px;
20                 position: relative;
21                 top: 1mm;
22                 width: 1mm;
23             }
24             table
25             {
26                 border-spacing: 1mm;
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>