Open
Bug 774376
Opened 12 years ago
Updated 2 years ago
SVG descendant of <defs> don't have bounding box
Categories
(Core :: SVG, defect)
Tracking
()
NEW
Webcompat Priority | P3 |
People
(Reporter: krit, Unassigned)
References
Details
Attachments
(1 file)
297 bytes,
image/svg+xml
|
Details |
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•12 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
Comment 2•12 years ago
|
||
Jonathan, this is the bug I was telling you about.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•12 years ago
|
||
Also on Intel Mac OSX. Also confirming that Chrome and Safari (current versions as of 11/29) handle this as expected.
Comment 5•3 years ago
|
||
Any updates on this? Edge works as expected too.
Updated•3 years ago
|
Updated•3 years ago
|
Webcompat Priority: --- → ?
Updated•3 years ago
|
Webcompat Priority: ? → P3
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•