Re: 'stroke' shorthand

> 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