c44-ln-box-001.xht (1850B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: The Height of Lines</title> 5 <meta name="flags" content="ahem image" /> 6 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#the-height-of-lines"/> 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 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <link rel="match" href="c44-ln-box-001-ref.xht" /> 11 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"><![CDATA[ 14 div { font: 10px/20px Ahem; color: white; background: red url(support/css1test44b.png) no-repeat; 15 width: 39em; padding: 0.5em 1em; border: 1em solid green; } 16 img.twoa, img.twob { width: 3em; height: 3em; padding: 0.5em; border-style: solid; border-width: 1em; margin: 1.5em; } 17 img.twoa { vertical-align: text-bottom; } 18 img.twob { vertical-align: text-top; } 19 ]]></style> 20 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#line-height" title="10.8 Line height calculations: the 'line-height' and 'vertical-align' properties"/> 21 </head> 22 <body> 23 <p>Test passes if there is an hollow green rectangle and <strong>no red</strong>.</p> 24 <div> 25 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 26 xxxx 27 <img src="support/swatch-white.png" alt="Image download support must be enabled" class="twoa" /> 28 xxxx xxxx 29 <img src="support/swatch-white.png" alt="Image download support must be enabled" class="twob" /> 30 xxxx 31 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 32 </div> 33 </body> 34 </html>