vertical-align-baseline-001

Vertical-align set to '0%' is equal to 'baseline'

WeasyPrint

This browser

Flags
ahem
Assertion
The 'vertical-align' property set to '0%' means the same as the 'baseline'.

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 set to '0%' is equal to 'baseline'</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 set to '0%' means the same as the 'baseline'.">
10         <style type="text/css">
11             div
12             {
13                 border-bottom: solid orange;
14                 color: blue;
15                 font: 1in/1em Ahem;
16                 height: 1in
17             }
18             #span1
19             {
20                 vertical-align: 0%;
21             }
22             #span2
23             {
24                 vertical-align: baseline;
25             }
26         </style>
27     </head>
28     <body>
29         <p>Test passes blue boxes below are touching but not overlapping the orange line.</p>
30         <div>
31             <span id="span1">X</span>
32             <span id="span2">X</span>
33         </div>
34     </body>
35 </html>