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</title>
5 <meta name="flags" content="ahem image">
6 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#vertical-align">
7 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
8 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
9 <style type="text/css">
10 .test {font: 15px/1 Ahem; color: green; background: red url(support/css1test544b.png) no-repeat; width: 90px; margin: 0 1em;}
11 img {height: 30px;}
12 .big {font-size:200%;}
13 .three {vertical-align: top; font-size: 15px;}
14 .four {vertical-align: text-top; font-size: 15px;}
15 .five {vertical-align: middle; font-size: 15px;}
16 .six {vertical-align: bottom; font-size: 15px;}
17 .seven {vertical-align: text-bottom; font-size: 15px;}
18 .eight {vertical-align: baseline; font-size: 15px;}
19 .nine {vertical-align: 50%; font-size: 15px; line-height: 20px;}
20 </style>
21 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" title="10.8.1 Leading and half-leading">
22 </head>
23 <body>
24 <p>There should be a green block with no red below.</p>
25 <div class="test">
26 <div><img src="support/swatch-green.png" alt="FAIL: Image support required."><span class="three">X</span>X</div>
27 <div><img src="support/swatch-green.png" alt="FAIL: Image support required."><span class="big"><span class="four">X</span>X</span></div>
28 <div><img src="support/swatch-green.png" alt="FAIL: Image support required." class="five">X</div>
29 <div><img src="support/swatch-green.png" alt="FAIL: Image support required."><span class="big"><span class="six">X</span>X</span></div>
30 <div><img src="support/swatch-green.png" alt="FAIL: Image support required."><span class="big"><span class="seven">X</span>X</span></div>
31 <div><img src="support/swatch-green.png" alt="FAIL: Image support required."><span class="big"><span class="eight">X</span>X</span></div>
32 <div><img src="support/swatch-green.png" alt="FAIL: Image support required."><span class="nine">X</span>X</div>
33 </div>
34 </body>
35 </html>