W3C home > Mailing lists > Public > www-svg@w3.org > January 2010

Re: Fwd: getBBox() on a <use>

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 20 Jan 2010 15:52:35 -0500
Message-ID: <4B576D13.5040107@mit.edu>
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.


> 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 

> 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?

Received on Wednesday, 20 January 2010 20:53:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:19 UTC