- From: Jeff Schiller <codedread@gmail.com>
- Date: Tue, 5 Jan 2010 07:32:24 -0600
- To: Erik Dahlstrom <ed@opera.com>
- Cc: www-svg <www-svg@w3.org>, Alex Danilo <alex@abbra.com>
- Message-ID: <da131fde1001050532qf35636ay93ef200ac26d3075@mail.gmail.com>
The fact that you moved the scale to a parent g with no differences is weird to me. Note that there is already a translate of 100,100 on a parent element that has NO apparent effect on the rects user space On Jan 5, 2010 4:08 AM, "Erik Dahlstrom" <ed@opera.com> wrote: On Tue, 05 Jan 2010 09:18:17 +0100, Alex Danilo <alex@abbra.com> wrote: > --Original Message--: >> ... ... >> >> The spec says userSpaceOnUse "shall represent values in the coordinate >> system that results... Just to test for consistency I also verified that moving the transform attribute from the rect in the example Jeff posted up to a surrounding g element does the same thing. Basically confirming that the current user space includes the transform on the element itself too. All viewers I tested displayed the gradients it the same way as in Jeff's original example. I also added a couple of lines to illustrate what the spec says the gradient vector should be. Modified example: <?xml version="1.0"?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1... <g transform="scale(0.25,1)"> <rect width="400" height="50" fill="url(#g1)" /> <!-- sh... <line x1="0" y1="0" x2="400" y2="50" stroke="black"/> </g> <rect y="100" width="100" height="50" fill="url(#g2)" /> <!-- show the gradient vector in current user space --> <line x1="0" y1="100" x2="100" y2="150" stroke="black"/> </g> </svg> ... > There is clarification for the weird perpendicular behaviour of > the gradients for 'objectBound... I agree that it makes sense to make the gradient perpendicular to the gradient vector for both 'objectBoundingBox' and 'userSpaceOnUse'. Cheers /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Grou...
Received on Tuesday, 5 January 2010 13:32:59 UTC