inline-block-baseline-010-ref.xht (657B)
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 <title>Vertical-align: baseline of an inline-block depends on 'overflow'</title> 7 8 <link rel="author" title="Bert Bos" href="mailto:bert@w3.org" /> 9 10 11 <style type="text/css"><![CDATA[ 12 body {background: white; color: black; font-size: 15px} 13 p {white-space: nowrap; line-height: 5} 14 img {height: 1em; width: 1em} 15 ]]></style> 16 </head> 17 18 <body> 19 <p> 20 A blue square 21 <img src="support/swatch-blue.png" alt="[blue square]" /> 22 sits on the baseline. 23 </p> 24 </body> 25 </html>