border-spacing-012

Border-spacing using points with a minimum minus one value, -1pt

WeasyPrint

This browser

Flags
invalid
Assertion
Setting border-spacing to a value below the minimum in points falls back to the default 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 using points with a minimum minus one value, -1pt</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="invalid">
 9         <meta name="assert" content="Setting border-spacing to a value below the minimum in points falls back to the default value.">
10         <style type="text/css">
11             table
12             {
13                 background-color: black;
14                 font-size: 12pt;
15                 margin-top: 10px;
16             }
17             #test
18             {
19                 border-spacing: -1pt;
20             }
21             td
22             {
23                 height: 100px;
24                 padding: 0;
25                 width: 100px;
26             }
27         </style>
28     </head>
29     <body>
30         <p>Test passes if the two boxes below are the same width.</p>
31         <table id="test">
32             <tr>
33                 <td></td>
34             </tr>
35         </table>
36         <table>
37             <tr>
38                 <td></td>
39             </tr>
40         </table>
41     </body>
42 </html>