vertical-align-100.xht (1595B)
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 using percentages with a negative zero value, -0%</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 <link rel="match" href="vertical-align-004-ref.xht" /> 9 10 <meta name="flags" content="ahem" /> 11 <meta name="assert" content="The 'vertical-align' property sets a negative zero length value in percentages." /> 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"> 14 div 15 { 16 font: 20px/1 Ahem; 17 height: 1em; 18 line-height: 1em; 19 position: relative; 20 width: 1em; 21 } 22 #div3 23 { 24 position: absolute; 25 top: 0; 26 } 27 #span1 28 { 29 color: red; 30 vertical-align: -0%; 31 } 32 </style> 33 </head> 34 <body> 35 <p>Test passes if there is a small black square and <strong>no red</strong>.</p> 36 <div id="div1"> 37 <div id="div2"> 38 <span id="span1">X</span> 39 </div> 40 <div id="div3">X</div> 41 </div> 42 </body> 43 </html>