Re: stroke=gradient for lines or horizontal paths

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