vertical-align-118.xht (1580B)
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"> 3 <head> 4 <title>CSS Test: Vertical-align with a keyword, 'text-top'</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 sets the keyword 'text-top'." /> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style type="text/css"> 12 #div1 13 { 14 position: relative; 15 } 16 #div2 17 { 18 position: absolute; 19 top: 0; 20 } 21 #span1 22 { 23 font: 1.5in/1em Ahem; 24 } 25 span span 26 { 27 color: red; 28 vertical-align: text-top; 29 } 30 #div2, span span 31 { 32 font: 0.5in/1em Ahem; 33 } 34 </style> 35 </head> 36 <body> 37 <p>Test passes if there is a large and small box on the page and there is no red visible on the page.</p> 38 <div id="div1"> 39 <div> 40 <span id="span1"><span>X</span>X</span> 41 </div> 42 <div id="div2">X</div> 43 </div> 44 </body> 45 </html>