vertical-align-114

Vertical-align with a keyword, 'middle'

WeasyPrint

This browser

Flags
ahem
Assertion
The 'vertical-align' property sets the keyword 'middle'.

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 with a keyword, 'middle'</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 the keyword 'middle'.">
10         <style type="text/css">
11             div
12             {
13                 font: 0.5in/1em Ahem;
14                 position: relative;
15             }
16             #div3
17             {
18                 position: absolute;
19                 top: 0.75in;
20             }
21             #span1
22             {
23                 color: red;
24                 vertical-align: middle;
25             }
26             #span2
27             {
28                 font: 1.5in/1em Ahem;
29             }
30         </style>
31     </head>
32     <body>
33         <p>Test passes if there is a small and large box on the page and there is no red visible on the page.</p>
34         <div id="div1">
35             <div id="div2">
36                 <span id="span1">X</span><span id="span2">X</span>
37             </div>
38             <div id="div3">X</div>
39         </div>
40     </body>
41 </html>