Re: dominant-baseline should be inheritable property?

On Mon, Jul 20, 2015 at 10:30 PM, SHANMUGA PANDI M
<shanmuga.m@samsung.com> wrote:
> As per http://drafts.csswg.org/css-inline/#dominant-baseline, dominant-baseline is inheritable property.
>
> Will it be applied for SVG also ?
>
> It is inheritable on Firefox , but not on Chrome.
>
> Refer the chrome bug : https://code.google.com/p/chromium/issues/detail?id=142215
>
> Please clarify.

It doesn't make sense to be non-inherited.  If it wasn't inherited,
then text like "<p style="dominant-baseline:...;">foo <em>bar</em>
baz</p>" would be broken, as the <em> would revert to the initial
value of the property, which is almost certainly wrong.

The same argument applies to SVG and <text> containing <tspan>.

~TJ

Received on Wednesday, 22 July 2015 18:08:36 UTC