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

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

From: Linss, Peter <peter.linss@hp.com>
Date: Mon, 1 Dec 2008 21:39:57 +0000
To: "L. David Baron" <dbaron@dbaron.org>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <A56057A4896BEC4BA13EE4C45CEB4FED29D490A22C@GVW0538EXC.americas.hpqcorp.net>

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.


-----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.)


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Monday, 1 December 2008 21:41:49 UTC

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