W3C home > Mailing lists > Public > www-svg@w3.org > November 2013

Re: 'stroke' shorthand

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 13 Nov 2013 13:47:33 -0800
Message-ID: <CAAWBYDBX=mFhVSR22dtU0gupi1qOTLS-f5asadxb9OMLrMn9Kw@mail.gmail.com>
To: Jeremie Patonnier <jeremie.patonnier@gmail.com>
Cc: Dirk Schulze <dschulze@adobe.com>, www-svg <www-svg@w3.org>
On Wed, Nov 13, 2013 at 3:05 AM, Jeremie Patonnier
<jeremie.patonnier@gmail.com> wrote:
> That said I suggest the following to resolve that issue:
> Make stroke a short hand that allows to get several stroke-* value and introduce a new stroke-color property/attribute. But to not breaking existing content make stroke NOT overriding long hand property is they are already set and if they are not explicitly set in the short hand.

This isn't compatible with how the CSS cascade works, and so won't
fly.  When we expand a shorthand into the component longhands, we have
no idea what else is supposed to have been set.  Plus, the "reset"
ability of the shorthand is actually a safety feature that makes it
easier to extend the language in the future, as it means that you can
use the shorthand and be sure of what you'll get, even if we add new
things to the shorthand in the future (rather than having the new
features leak through into your styling because you didn't override
them explicitly).

Received on Wednesday, 13 November 2013 21:48:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:47 UTC