W3C home > Mailing lists > Public > www-svg@w3.org > July 2015

Re: dominant-baseline should be inheritable property?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 22 Jul 2015 11:07:46 -0700
Message-ID: <CAAWBYDBu2tnd_7acqSHWYhUO5KSNPwW6Uks3X9sDDdqOuHBfJg@mail.gmail.com>
To: shanmuga.m@samsung.com
Cc: www-svg <www-svg@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:55:02 UTC