On Tue, 26 Jun 2012 12:12:28 +0200, Arjen <[email protected]> wrote:

> No browser displays to code below 100% correct.
>
> This leads to 2 questions:
> 1. Is a negative dx allowed? Firefox 13 / Opera 12 ignore it, Chrome 19  
> and IE 9 apply it.

Negative dx? If you mean the values in the [x1,y1,x2,y2] attributes then  
yes they may be negative, that's valid. (x1,y1) defines where the color  
stop at offset 0 is, and (x2,y2) defines where the color stop at offset 1  
(or 100%) is.

> 2. Is a color name allowed in a gradient? Firefox 13 displays it  
> correct. Opera, Chrome and IE display a black bar.

Odd, so Firefox renders invalid fill attributes? Sounds like a bug to me.

> Do I have to change the code or are the browser buggy?

Here is the buggy part in your markup:

   fill="url(#gradientPositive"

See the missing closing parenthesis? Both gradients worked just fine after  
adding that.

Hope this helps
-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to