Created attachment 642658 [details] Example of bounding box on ancestor of <defs> User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2 Steps to reproduce: Added a <rect> as ancestor of a <defs> element and tried to get the bounding box with getBBox() as well as getBoundingClientRect(). Actual results: getBBox() returns an error. getBoundingClientRect() returns a rect with no dimension (0,0,0,0) Expected results: Both functions should return the bounding box of the rect. See comments on bug 612118 as well.
(In reply to Dirk Schulze from comment #0) > Added a <rect> as ancestor of a <defs> element and tried to get the bounding > box with getBBox() as well as getBoundingClientRect(). Sorry, descendant of course.
Summary: SVG ancestor of <defs> don't have bounding box → SVG descendant of <defs> don't have bounding box
Jonathan, this is the bug I was telling you about.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Also on Intel Mac OSX. Also confirming that Chrome and Safari (current versions as of 11/29) handle this as expected.
Confirm that Internet Explorer 10 and 11 give the expected result.
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Last Resolved: 3 days ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.