[css-transforms][svg11] Effect of perspective and 3D transform on SVG bounding box

Hi all,

SVG defines the bounding box of an object as follows [1]:

getBBox(): Returns the tight bounding box in current user space (i.e., after application of the ‘transform’attribute, if any) on the geometry of all contained graphics elements

The question is what is the effect of 3D transforms on the bounding box? I assume that there wouldn't be a big difference. It would still be the tight bounding box of the contained elements after transformations.

More interesting, what is with a perspective projection matrix? Would it affect the bounding box as well? After all, the perspective projection matrix is not very different from a CSS transform which can have perspective values as well. Therefore, I would assume that all the properties: transform, transform-origin, perspective and perspective-origin have an effect on the object bounding box.


[1] http://www.w3.org/TR/SVG/types.html#__svg__SVGLocatable__getBBox

Received on Monday, 14 October 2013 20:58:43 UTC