On Apr 9, 2008, at 09:03, Pascal Sancho wrote:
-----Message d'origine-----
De : Andreas Delmelle [mailto:[EMAIL PROTECTED]
Envoyé : mardi 8 avril 2008 23:36
In other words, if you have:
<fo:block font-size="12pt" line-height="120%">
<fo:block font-size="8pt">
Then the specified line-height for the inner block would be "12pt x
120%", and not, if I interpret your question correctly, "8pt x 120%".
IIUC, the following snippet should be interpreted as you said above
about percentage.
The 2nd fo:block line-height should be 12*1.2
<fo:block font-size="12pt" line-height="1.2">
<fo:block font-size="8pt">
No, because, as Erick and Manuel already pointed out, this is an
explicit exception to the general rule.
IMHO, behaviour should be the same for either percentage or numeric
value.
IIUC your point of view, in both cases, according to the spec,
inherited line-height should be computed value.
What I expect, is that inherited line-height should remain relative
when possible.
(What about line-height expressed in 'em'?)
I agree with you that it may seem inconsistent, but still: only the
<numeric> value is the exception. We can only guess, but it may just
have been defined so, because otherwise there would be no way at all
to achieve the effect of inheriting a relative value...
For em's or other font-size-relative units, the computation/
resolution to an absolute value again will be done relative to the
outer block's font-size, and the computed value is inherited by the
inner block, unless it is overridden there.
Cheers
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]