Open Bug 1598121 Opened 6 years ago Updated 3 years ago

getEndPositionOfChar and getExtentOfChar should take letter-spacing and word-spacing into account

Categories

(Core :: SVG, defect, P3)

defect

Tracking

()

People

(Reporter: heycam, Unassigned)

References

Details

getEndPositionOfChar and getExtentOfChar probably don't do exactly the right thing in the presence of letter-spacing and word-spacing.

Is this the reason why SVG letter-spacing with text-align="end" doesn't work correctly on Firefox?
It works correctly on Chrome and Safari.

Here's an example: https://jsfiddle.net/q9bs8k2r/
Firefox has an extra space after the last letter. The 'O' letter should be touching the gray line.

Tested on Firefox Nightly 72.0a1 (2019-11-21) (64-bit)

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