SVG descendant of <defs> don't have bounding box

RESOLVED INACTIVE

Status

()

Core
SVG
RESOLVED INACTIVE
6 years ago
3 days ago

People

(Reporter: Dirk Schulze, Unassigned)

Tracking

Trunk
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
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.
(Reporter)

Comment 1

6 years ago
(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

Comment 3

6 years ago
Also on Intel Mac OSX. Also confirming that Chrome and Safari (current versions as of 11/29) handle this as expected.

Comment 4

3 years ago
Confirm that Internet Explorer 10 and 11 give the expected result.

Comment 5

3 days ago
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.