W3C home > Mailing lists > Public > www-style@w3.org > December 2008

Re: [css3-values] cap-height unit?

From: Ambrose Li <ambrose.li@gmail.com>
Date: Mon, 1 Dec 2008 17:10:43 -0500
Message-ID: <af2cae770812011410g742348eet4c6ee5819c61bf05@mail.gmail.com>
To: "Stanimir Stamenkov" <s7an10@netscape.net>
Cc: www-style@w3.org

2008/12/1 Stanimir Stamenkov <s7an10@netscape.net>:
>
> Mon, 1 Dec 2008 15:53:44 -0500, /Ambrose Li/:
>>
>> 2008/12/1 Sylvain Galineau <sylvaing@microsoft.com>:
>>
>>> My first reaction aligns with Stanimir's suggestion i.e. wouldn't a
>>> line-height multiple be more useful for this use-case ?
>>
>> A lot of times an image is used as a character (e.g., which has no
>> Unicode, or which is unusual and so absent in most common fonts). A
>> cap-height unit would be more useful in this case.
>
> Doesn't such an image never need to take the space from the text-bottom to
> the baseline?  In my opinion it is more likely for such an image to have the
> height from the text-bottom to the text-top which should be the same as 1em,
> or I'm missing something?

It may or may not. If an image is to stand for a glyph with no
Unicode, it could be a lowercase letter, in which case it would take
the space between the baseline and the descender line.

(And yes, I did run into this problem myself, though it was before
CSS/Unicode times.)
-- 
cheers,
-ambrose

The 'net used to be run by smart people; now many sites are run by
idiots. So SAD... (Sites that do spam filtering on mails sent to the
abuse contact need to be cut off the net...)
Received on Monday, 1 December 2008 22:11:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:17 GMT