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

Re: 'stroke' shorthand

From: Paul LeBeau <paul.lebeau@gmail.com>
Date: Fri, 15 Nov 2013 14:26:55 +1300
Message-ID: <CACfsppBMz8tPpCzXpZanfvebsbM+joxT_73OxApqZg_6+DRwZA@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Alex Bell <alex@bellandwhistle.net>, www-svg <www-svg@w3.org>, "Dr. Olaf Hoffmann" <Dr.O.Hoffmann@gmx.de>
> We can't "not honor the reset behavior".  That behavior is part and
> parcel of how shorthands are implemented in browsers.

Web browsers are not the only SVG renderers out there.  Some
implementations could choose
to do this depending on how their implementations work.  It was just a
suggestion on a possible
strategy for reducing breakage - especially if the styling is internal to
the SVG.

Paul



On 15 November 2013 13:52, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> On Thu, Nov 14, 2013 at 3:26 PM, Paul LeBeau <paul.lebeau@gmail.com>
> wrote:
> > Alex write:
> >> What about adding ‘stroke-color’ to both SVG and CSS, and changing
> >> “stroke” to a shorthand across the board?
> >
> > And breakage could be additionally mitigated if SVG2 renderers didn't
> honour
> > the reset behaviour if the document version="1.1".
>
> We can't "not honor the reset behavior".  That behavior is part and
> parcel of how shorthands are implemented in browsers.  Plus, styling
> doesn't just come from an SVG document - it could be embedded in HTML,
> with the stylesheet in the HTML document, for example.
>
> ~TJ
>
Received on Friday, 15 November 2013 01:27:43 UTC

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