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

Re: stroke=gradient for lines or horizontal paths

From: Erik Dahlstrom <ed@opera.com>
Date: Thu, 14 Jul 2011 10:23:54 +0200
To: "David Dailey" <ddailey@zoominternet.net>, "Alex Danilo" <alex@abbra.com>
Cc: "'www-svg'" <www-svg@w3.org>
Message-ID: <op.vyln94v5geuyw5@localhost.localdomain>
On Thu, 14 Jul 2011 04:11:03 +0200, Alex Danilo <alex@abbra.com> wrote:

> 	But - the one thing that isn't clearly defined in the spec. for this  
> case is what to do if the
> paint server doesn't have a fallback colour.

There's a difference in what 1.2T defines and what 1.1F2 defines for  
paintservers[1][2]. If a paintserver is "invalid" (no exhaustive list is  
given for when that is, just some examples, that should be clarified) then  
in 1.1 that makes the whole document be 'in error', while in 1.2T it just  
means that it will be treated as if 'none' was specified.

> 	As you said Safari and FF draw five lines. They are assuming the  
> default stroke
> color as a fallback - i.e. black.

Maybe, but black is not the default stroke color, the default for stroke  
is 'none' [3].

[1] http://www.w3.org/TR/SVG11/painting.html#SpecifyingPaint
[2] http://www.w3.org/TR/SVGTiny12/painting.html#SpecifyingPaint
[3] http://www.w3.org/TR/SVG11/painting.html#StrokeProperty

Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed
Received on Thursday, 14 July 2011 08:24:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:25 UTC