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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox66 --- wontfix
firefox67 --- wontfix
firefox68 --- fixed

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: nobody → violet.bugreport
Status: NEW → ASSIGNED

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
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: