1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html lang="en">
3 <head>
4 <title>CSS Test: vertical-align: bottom on :first-line</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/first-line/015.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo">
8 <style type="text/css">
9 .ahem { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
10 .control, .test { font: 1em/1 Ahem; color: green; margin: 0 2em; }
11 .first-line, .test:first-line { background: red; vertical-align: bottom; }
12 .inner { font-size: 5em; vertical-align: bottom; }
13 </style>
14 </head>
15 <body>
16 <div class="ahem">Ahem_font_required_for_this_test.</div>
17 <p>There should be two unbroken lines of green below.</p>
18 <p class="control"><span class="first-line">X<span class="inner">p</span>X</span></p>
19 <p class="test">X<span class="inner">p</span>X</p>
20 </body>
21 </html>