first-line-pseudo-015.xht (1291B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml" 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="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-28 --> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/first-line/015.html" type="text/html"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" /> 9 <link rel="match" href="first-line-pseudo-015-ref.xht" /> 10 11 <meta name="flags" content="ahem may" /> 12 13 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 14 <style type="text/css"> 15 .control, .test { font: 1.25em/1 Ahem; color: green; margin: 0 2em; } 16 .first-line, .test:first-line { background: red; vertical-align: bottom; } 17 .inner { font-size: 5em; vertical-align: bottom; } 18 </style> 19 </head> 20 <body> 21 <p>Test passes if there are 2 unbroken green stripes.</p> 22 <p class="control"><span class="first-line">X<span class="inner">p</span>X</span></p> 23 <p class="test">X<span class="inner">p</span>X</p> 24 </body> 25 </html>