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

Wow. That piece of code has a thick layer of dust on it. I added that back in 1998...

Consider me in favor of the unit. It was something we used extensively in design models from Pages (the precursor to Gecko, circa 1991-1995) and designers seemed to like it. IIRC it was used heavily in styled headlines and initial caps.

Peter

-----Original Message-----
From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of L. David Baron
Sent: Saturday, November 29, 2008 8:21 AM
To: www-style@w3.org
Subject: [css3-values] cap-height unit?


Would it be useful to add a unit representing the height of capitals
in the current font?  This would be similar to the 'ex' unit (which
is roughly the height of lowercase letters and corresponds to the
font's x-height metric), but would instead correspond to the
cap-height metric in the font.

It seems like it could be useful when sizing images to fit within a
line of text, and it further seems like the implementation could
share a lot of code with the implementation of the 'ex' unit.

(I thought of this because I just noticed a few stubs of future
plans to implement such a unit in Mozilla.  The implementor there
thought it could be called a 'cap', but I don't have strong opinions
on naming.)

-David

--
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Monday, 1 December 2008 21:41:49 UTC