Re: Inconsistent treatment of "em" and "ex" unit when used to specify "font-size"
Brad Kemper <brad.kemper <at> gmail.com>
2009-11-02 05:03:12 GMT
On Oct 30, 2009, at 7:03 AM, Bert Bos wrote:
> On that last sentence of the quoted text (which is marked as an
> issue in
> the working draft): The WG currently believes that the text of CSS 2.1
> ("In the cases where it is impossible or impractical to determine the
> x-height, a value of 0.5em should be used.") is still the best and can
> be inserted unchanged at that point in the CSS3 module.
Should a note about this also be added to 'font-size-adjust'? 
That part of that module does not actually mention 'ex' units, but if
I understand it correctly, it would need the same bit of info from the
font, and would also need to guess at it, if it is "impossible or
impractical to determine the x-height" by reading it directly from the
Or maybe the wording of 'font-size-adjust' can be adjusted to describe
what it is doing in terms of equalizing the 'ex' measurement of all
the fonts in the font-family list? For instance, maybe "aspect ratio"
can be defined as "1ex, as measured in ems" (thus, if '0.5' is the
'aspect ratio' for a given font, then it is actually '1ex', measured
as '0.5em'). In this case, no other explanation about the undetermined
x-heights is needed in the fonts module, because that explanation is
already in the "CSS Values and Units" module.
I also think that would be a bit easier to comprehend than the current
opening explanation, which speaks of "the relative height of lowercase
letters", and then later uses a lower case "b" as an example (which