html-attribute-018

Attribute 'hspace' vs. CSS 'margin' specificity

WeasyPrint

This browser

Flags
image
Assertion
Attribute 'hspace' has a specificity of zero and is overridden by CSS.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: Attribute 'hspace' vs. CSS 'margin' 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="image">
 8         <meta name="assert" content="Attribute 'hspace' has a specificity of zero and is overridden by CSS.">
 9         <style type="text/css">
10             html, body, p
11             {
12                 margin: 10px;
13             }
14             *
15             {
16                 margin: -5px;
17             }
18         </style>
19     </head>
20     <body>
21         <p>Test passes if there is no space between the green and blue boxes below.</p>
22         <div>
23             <img hspace="200" alt="15x15 blue box" src="support/blue15x15.png">
24             <img alt="15x15 green box" src="support/green15x15.png">
25         </div>
26     </body>
27 </html>