vertical-align-116

Vertical-align with a keyword, 'super'

WeasyPrint

This browser

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

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, 'super'</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 'super'.">
10         <style type="text/css">
11             div
12             {
13                 font: 48px/1em Ahem;
14                 position: relative;
15             }
16             #div3
17             {
18                 border-top: 2px solid blue;
19                 height: 48px;
20                 position: absolute;
21                 top: 86px;
22                 width: 48px;
23                 z-index: 1;
24             }
25             #span1
26             {
27                 color: orange;
28                 vertical-align: super;
29             }
30             #span2
31             {
32                 color: white;
33                 font: 96px/1em Ahem;
34             }
35         </style>
36     </head>
37     <body>
38         <p>Test passes if there is vertical white space between the top of the blue line and the bottom of the orange square.</p>
39         <div id="div1">
40             <div id="div2">
41                 <span id="span1">X</span><span id="span2">X</span>
42             </div>
43             <div id="div3"></div>
44         </div>
45     </body>
46 </html>