vertical-align-055

Vertical-align using millimeters with a nominal value, 25.4mm

WeasyPrint

This browser

Flags
ahem
Assertion
The 'vertical-align' property sets a nominal 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 nominal value, 25.4mm</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 nominal length value in millimeters.">
10         <style type="text/css">
11             div
12             {
13                 font: 20px/1 Ahem;
14                 position: relative;
15             }
16             #div2
17             {
18                 color: red;
19             }
20             #div3
21             {
22                 position: absolute;
23                 top: 0;
24             }
25             #div4
26             {
27                 position: absolute;
28                 top: 25.4mm;
29                 left: 1em;
30             }
31             #span1
32             {
33                 vertical-align: 25.4mm;
34             }
35         </style>
36     </head>
37     <body>
38         <p>Test passes if there is at least one black box and there is no red visible on the page.</p>
39         <div id="div1">
40             <div id="div2">
41                 <span id="span1">X</span>X
42             </div>
43             <div id="div3">X</div>
44             <div id="div4">X</div>
45         </div>
46     </body>
47 </html>