[Webkit-unassigned] [Bug 15276] Linear gradient bug in SVG.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 25 06:46:49 PDT 2007


eugene.lazutkin at gmail.com changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |

------- Comment #9 from eugene.lazutkin at gmail.com  2007-09-25 06:46 PDT -------
(In reply to comment #7)
> Ok, now I see the bug.  You used "gradientunits" instead of "gradientUnits". 
> Attributes are case sensitive in SVG.  So we ignore "gradientunits" (and should
> probably write something to the console when we do this).  This code was
> defining a gradient vector which was started at 0%, 0% and went to 10000%
> width, 10000% height of the bounding box of whatever it was rendered in.  So
> only the starting color was ever displayed.
> Does that make sense?

No it doesn't make any sense. I create all attributes with proper names. The
relevan part from dojox/gfx/svg.js (method _setFill):

fill.setAttribute("gradientUnits", "userSpaceOnUse");

This is the only place, which creates this attribute.

This is why I am filing it as a bug. Obviously the best solution to me is to
modify my code, because in this case it would be fixed long time ago without
bothering other people, but unfortunately you have to do something on your
side. I apologize for that, but I don't see any other solution to fix the

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list