If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

spaces between tspan elements affect position of the tspan

UNCONFIRMED
Unassigned

Status

()

Core
SVG
UNCONFIRMED
3 years ago
3 years ago

People

(Reporter: patrick.parsons, Unassigned)

Tracking

32 Branch
x86_64
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
Created attachment 8530920 [details]
example.svg

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36

Steps to reproduce:

Added several tspan elements to a text element that has the attribute text-anchor="end". Each tspan has an x coordinate specified, along with a dy.




Actual results:

Each block of text, except for the last, has a space at the end of it, and that space is aligned at the specified x coordinate. Removing all whitespace between the tspan elements fixes the alignment problem, but then there's no whitespace.


Expected results:

The space is not in or part of the tspan, the last letter of each tspan should be at the specified x coordinate. Whether a space follows the tspan or not shouldn't affect its position.

IE correctly displays this.

Updated

3 years ago
Component: Untriaged → SVG
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.