Firefox disagrees with other browsers on getBBox() results, when viewBox transforms are involved
Categories
(Core :: SVG, defect)
Tracking
()
People
(Reporter: dholbert, Unassigned, NeedInfo)
References
(Blocks 1 open bug, )
Details
(Keywords: webcompat:platform-bug)
User Story
user-impact-score:60
Attachments
(1 file)
|
500 bytes,
text/html
|
Details |
[spinning this off as the underlying platform bug behind bug 1893281]
STR:
- Load https://bug1893281.bmoattachments.org/attachment.cgi?id=9422610
- Look at the values in the alert(), and compare to other browsers
ACTUAL RESULTS:
Firefox gives me:
-2461.079833984375 -20775.599609375 16518.87890625 54525.1015625
EXPECTED RESULTS:
Chromium and WebKit (epiphany / gnome-web) give me:
-2461.079833984375 -20775.599609375 14468.4423828125 34832.453125
Notably, the 3rd and 4th components (the width and height) differ by quite a lot.
longsonr provided this context in bug 1893281 comment 9, as the reason behind the difference here:
We think a viewBox transform only applies to your children, chrome does not do that though and applies it to the element itself as well (at least when returning the bounding box). We don't think that makes sense because a viewBox doesn't change the element's bounds, it changes its children.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 1•10 months ago
|
||
Comment 2•10 months ago
|
||
Jonathan, Robert, how do we make progress on this?
Updated•7 months ago
|
Description
•