vertical-align-053

Vertical-align using millimeters with a zero value, 0mm

WeasyPrint

This browser

Flags
ahem
Assertion
The 'vertical-align' property sets a zero length value 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: Vertical-align using millimeters with a zero value, 0mm</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading">
 8         <meta name="flags" content="ahem">
 9         <meta name="assert" content="The 'vertical-align' property sets a zero length value in millimeters.">
10         <style type="text/css">
11             div
12             {
13                 font: 20px/1 Ahem;
14                 position: relative;
15             }
16             #div3
17             {
18                 position: absolute;
19                 top: 0;
20             }
21             #span1
22             {
23                 color: red;
24                 vertical-align: 0mm;
25             }
26         </style>
27     </head>
28     <body>
29         <p>Test passes if there is at least one black box and there is no red visible on the page.</p>
30         <div id="div1">
31             <div id="div2">
32                 <span id="span1">X</span>
33             </div>
34             <div id="div3">X</div>
35         </div>
36     </body>
37 </html>