SVG2: wrong definition for bounding box algorithm

Hi,

The algorithm to compute a bounding box for a container states the following[1]:

	• Let box be a rectangle initialized to (0, 0, 0, 0).

and later:

	set box to be the union of box and the result of invoking the algorithm to compute a bounding box with child

That means that box will always include the point (0,0)

So the following example:

<g>
<rect x=“200” y=“200” width=“200” height=“200”/>
</g>

would result in the following bounding box for <g>:

(0,0,400,400)

I don’t think that this is expected.

Greetings,
Dirk

[1] https://svgwg.org/svg2-draft/coords.html#TermObjectBoundingBox

Received on Friday, 18 April 2014 21:07:53 UTC