[Webkit-unassigned] [Bug 93290] getBBox() returns (0, 0) when width or height is zero.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 6 14:13:59 PDT 2012


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


Philip Rogers <pdr at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |EasyFix




--- Comment #2 from Philip Rogers <pdr at google.com>  2012-08-06 14:13:57 PST ---
I don't think that is the case Dirk. Only negative values are in error.

"A negative value is an error. A value of zero disables rendering of the element." [1]

"Returns the tight bounding box in current user space ... 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." [2]

Together these seem to indicate that a bounding box should still be returned, regardless of whether the element has been rendered.

[1] http://www.w3.org/TR/SVG/single-page.html#shapes-RectElementWidthAttribute
[2] http://www.w3.org/TR/SVG/single-page.html#types-__svg__SVGLocatable__getBBox

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