line-height-126.xht (920B)
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: line-height of images</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/line-height/006.html" type="text/html"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#line-height" /> 8 <link rel="match" href="line-height-126-ref.xht" /> 9 10 <meta content="image" name="flags" /> 11 12 <style type="text/css"> 13 div { background: red; line-height: 0; width: 10em; } 14 img { width: 10em; height: 1px; vertical-align: top; } 15 </style> 16 </head> 17 <body> 18 <p>Test passes if there is a short thin green line and <strong>no red</strong>.</p> 19 <div><img src="support/1x1-green.png" alt="FAIL (images required)"/></div> 20 </body> 21 </html>