vertical-align-applies-to-011.xht (1258B)
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 applied to elements with 'display' set to 'run-in'</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 does not apply to elements with 'display' set to 'run-in'." /> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style type="text/css"> 12 div 13 { 14 background: orange; 15 color: blue; 16 display: run-in; 17 font: 20px/1em Ahem; 18 height: 1in; 19 vertical-align: bottom; 20 width: 1in; 21 } 22 </style> 23 </head> 24 <body> 25 <p>Test passes if the blue box below is in the upper-left corner of the orange box.</p> 26 <div>X</div> 27 </body> 28 </html>