vertical-align-117a-ref.xht (1257B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Reftest Reference</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 11 <style type="text/css"><![CDATA[ 12 div 13 { 14 background-color: yellow; 15 height: 175px; 16 position: relative; 17 } 18 19 img {position: absolute;} 20 21 img#first-black 22 { 23 left: 0px; 24 top: 90px; 25 } 26 27 img#second-blue 28 { 29 left: 120px; 30 top: 45px; 31 } 32 33 img#third-black 34 { 35 left: 520px; 36 top: 90px; 37 } 38 ]]></style> 39 40 </head> 41 42 <body> 43 44 <p>Test passes if the blue stripe is vertically offset <strong>above the black stripes on both sides</strong>. The blue stripe must be clearly and entirely above the black stripes.</p> 45 46 <div><img id="first-black" src="../support/black15x15.png" width="160" height="40" alt="Image download support must be enabled" /><img id="second-blue" src="../support/blue15x15.png" width="440" height="40" alt="Image download support must be enabled" /><img id="third-black" src="../support/black15x15.png" width="160" height="40" alt="Image download support must be enabled" /> 47 </div> 48 49 </body> 50 </html>