[Webkit-unassigned] [Bug 176992] New: getBBox() called on a <g> with <path> returns a bounding box that includes control points
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 15 02:35:37 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=176992
Bug ID: 176992
Summary: getBBox() called on a <g> with <path> returns a
bounding box that includes control points
Product: WebKit
Version: Safari 10
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: SVG
Assignee: webkit-unassigned at lists.webkit.org
Reporter: zbynek.stara.internet at hotmail.com
CC: zimmermann at kde.org
When getBBox() is called on a <path> element, the correct bounding box is returned (one that does not include path control points).
However, when the same <path> is wrapped in a <g> element, and getBBox() is called on the <g>, the returned bounding box includes the path's control points.
The bounding box for a <g> wrapping a <path> should be the same as the bounding box of the <path> on its own.
This jsfiddle illustrates the problem: http://jsfiddle.net/3t8u9qyb/
Bug is present in Safari 10.1.2, Google Chrome for Mac 61.0.3163.91 and Google Chrome for Windows 62.0.3202.18 .
Also present in Safari for iOS (10.3.3)
Firefox on Windows, IE11 and Edge all show the correct behavior.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170915/0018eebe/attachment.html>
More information about the webkit-unassigned
mailing list