Re: [css3-values] Which font to use for the ex unit?

Le 17/01/2013 20:38, "G�rard Talbot" a �crit :
> CSS 2.1, section 4.3.2 Lengths states
>
> "
> ex: the 'x-height' of the relevant font
> (...)
> The 'ex' unit is defined by the element's first available font.

Yes, this is the key sentence.


> The
> exception is when 'ex' occurs in the value of the 'font-size' property, in
> which case it refers to the 'ex' of the parent element.
> "
> http://www.w3.org/TR/CSS21/syndata.html#length-units


css3-values already says �

"""
The exception is when [font-relative lengths] occur in the value of the 
�font-size� property itself, in which case they refer to the computed 
font metrics of the parent element (or the computed font metrics 
corresponding to the initial values of the �font� property, if the 
element has no parent).
"""

which I think is the same. (ex of the parent vs. x-height of the first 
font of the parent.)


> This chunk of text is most likely what is missing in
> CSS 3 Values and Units, section 5.1.1. Font-relative lengths: the �em�,
> �ex�, �ch�, �rem� units
> http://www.w3.org/TR/css3-values/#ex-unit

Yes, that would be an adequate fix.

-- 
Simon Sapin

Received on Thursday, 17 January 2013 20:18:23 UTC