Open Bug 774376 Opened 12 years ago Updated 2 years ago

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

Categories

(Core :: SVG, defect)

x86
macOS
defect

Tracking

()

Webcompat Priority P3

People

(Reporter: krit, Unassigned)

References

Details

Attachments

(1 file)

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.

Any updates on this? Edge works as expected too.

Webcompat Priority: --- → ?
Webcompat Priority: ? → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: