W3C home > Mailing lists > Public > www-style@w3.org > April 2007

Line height calculations in presence of replaced content

From: White Lynx <whitelynx@operamail.com>
Date: Thu, 19 Apr 2007 08:01:48 +0000
To: www-style@w3.org
Message-Id: <20070419080142.2F4EECA0A4@ws5-11.us4.outblaze.com>

In http://www.w3.org/TR/CSS21/visudet.html#line-height
there is confusing statement:

"On an inline-level element, 'line-height' specifies the height that is used in the calculation of the line box height (except for inline replaced elements, where the height of the box is given by the 'height' property)."

In particular it is not clear what box is implied in "the height of the box is given by the 'height' property". Is it line box that contains replaced content (would be strange, but line box is mentioned earlier in sentence and creates confusion) or is it content area of inline element? Is the following test case 
correct or not?

Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze
Received on Thursday, 19 April 2007 09:29:25 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:28 UTC