[Webkit-unassigned] [Bug 81104] getBBox returns incorrect results with empty containers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 14 11:06:14 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=81104





--- Comment #5 from Stephen Chenney <schenney at chromium.org>  2012-03-14 11:06:14 PST ---
I don't think it's necessary to ask the WG. The spec is clear and there is only one rect inside the group.

http://www.w3.org/TR/SVG/types.html#__svg__SVGLocatable__getBBox
SVGRect 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, exclusive of stroking, clipping, masking and filter effects). Note that getBBox must return the actual bounding box at the time the method was called, even in case the element has not yet been rendered.
Returns
An SVGRect object that defines the bounding box.

http://www.w3.org/TR/SVG/intro.html#Definitions
graphics element:
One of the element types that can cause graphics to be drawn onto the target canvas. Specifically: ‘circle’, ‘ellipse’, ‘image’, ‘line’, ‘path’, ‘polygon’, ‘polyline’, ‘rect’, ‘text’ and ‘use’.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list