Re: [css-inline] computed value and inheritance of line-height:normal

On Mon, Jun 24, 2013 at 5:28 PM, Cameron McCormack <cam@mcc.id.au> wrote:
> It's not clear to me from http://dev.w3.org/csswg/css-inline/#line-height
> exactly what the computed value for line-height:normal is and what kind of
> value it should inherit.
>
> The text currently says:
>
>   normal
>     Tells user agents to set the computed value to a "reasonable" value
>     based on the font size of the element. The value has the same
>     meaning as <number>. We recommend a computed value for ‘normal’
>     between 1.0 to 1.2. The user agent may allow the <number> to vary
>     depending on the metrics of the font(s) being used.
>
> Having "the same meaning as <number>" makes it sound to me like it behaves
> just like you specified the reasonable number that the UA has chosen, in
> which case the computed value would be that number multiplied by the font
> size, and the number would be inherited.  On the other hand, the text talks
> about the computed value being between 1.0 and 1.2, so maybe the computed
> value is a number instead.  Unless "computed value for ‘normal’" does not
> mean the same as "computed value for line-height when it has the value
> ‘normal’", and instead means "the reasonable number the UA uses when you
> specify ‘normal’".

Inline is still unmaintained at the moment.  Look to 2.1, or, when
appropriate, Fonts or Text for now.

~TJ

Received on Tuesday, 25 June 2013 18:03:25 UTC