Closed
Bug 1544209
Opened 6 years ago
Closed 6 years ago
getBoundingClientRect returns wrong result for <tspan> when SVG transform is applied on <text>
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla68
People
(Reporter: violet.bugreport, Assigned: violet.bugreport)
Details
Attachments
(2 files)
This should be an old bug, I can at least reproduce on Firefox 66. It works fine when no transform or CSS transform is applied. Only broken for SVG transform.
Assignee | ||
Updated•6 years ago
|
status-firefox66:
--- → affected
status-firefox67:
--- → affected
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → violet.bugreport
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•6 years ago
|
||
We already get the user space metrics, mFontSizeScaleFactor is irrelevant
and the scaling should not be applied in the first place.
Otherwise we will get very wrong bounding box when <text> has SVG transform
or the font has extreme size.
Pushed by violet.bugreport@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/030327cc0e91
Should not scale mFontSizeScaleFactor for user space r=longsonr
Comment 3•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox68:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Updated•6 years ago
|
Updated•6 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•