border-spacing-039

Border-spacing using centimeters with a nominal value, 2.54cm

WeasyPrint

This browser

Flags
ahem
Assertion
Border-spacing can be set to nominal length in centimeters.

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 centimeters with a nominal value, 2.54cm</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 to nominal length in centimeters.">
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: 216px;
20                 position: relative;
21                 top: 2.54cm;
22                 width: 2.54cm;
23             }
24             table
25             {
26                 border-spacing: 2.54cm;
27             }
28             td
29             {
30                 padding: 0;
31             }
32         </style>
33     </head>
34     <body>
35         <p>Test passes if the middle bar is as wide as the space between the first and last 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>