- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Wed, 20 Jan 2010 15:52:35 -0500
- To: Jeff Schiller <codedread@gmail.com>
- CC: www-svg <www-svg@w3.org>
On 1/20/10 3:47 PM, Jeff Schiller wrote: > The confusing part is that<g> does not have x,y,width,height > attributes, while<use> does, implying that the<use> imposes a given > box in the user coordinate system beyond just its referenced/shadowed > content. Yep. > I realize that it's too late to change things in SVG 1.1 and SVGT 1.2, > but I'm curious why would it be useful for getBBox() on a<use> > element to return the bounding box of the referenced content and not > take into account the position/scaling imposed by the surrounding use > element's x,y,width,height? I have no idea, honestly. But then again, the behavior of getBBox() generally seems to be ... somewhat odd (given the user coordinate system thing). > For instance, I could have six<use> elements all pointing to the same > element - yet all six<use> bboxes would be identical. I'm not sure they necessarily would if the element used percent sizes, would they? -Boris
Received on Wednesday, 20 January 2010 20:53:10 UTC