html-attribute-007

Attribute 'cellspacing' vs. CSS border-spacing specificity

WeasyPrint

This browser

Assertion
Attribute 'cellspacing' has 0 specificity and is overridden by CSS.

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: Attribute 'cellspacing' vs. CSS border-spacing specificity</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Attribute 'cellspacing' has 0 specificity and is overridden by CSS.">
 9         <style type="text/css">
10             *
11             {
12                 border-spacing: 0;
13             }
14             td
15             {
16                 background: blue;
17             }
18         </style>
19     </head>
20     <body>
21         <p>Test passes if there is one blue box on the page.</p>
22         <table cellspacing="100" cellpadding="0">
23             <tr>
24                 <td>FillerText</td>
25             </tr>
26             <tr>
27                 <td>FillerText</td>
28             </tr>
29         </table>
30     </body>
31 </html>