Closed
Bug 936670
Opened 11 years ago
Closed 11 years ago
right-anchor is not applied while rendering text in svg
Categories
(Core :: SVG, defect, P3)
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: gr.hayduk, Assigned: heycam)
References
()
Details
(Keywords: regression, testcase, Whiteboard: [good first verify])
Attachments
(2 files)
165 bytes,
image/svg+xml
|
Details | |
3.67 KB,
patch
|
longsonr
:
review+
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0 (Beta/Release) Build ID: 20131025151332 Steps to reproduce: Display svg generated with gnuplot. The svg contains a text with text-anchor:end. See http://home.agh.edu.pl/~hayduk/ff25bug/psegs.html Actual results: The text is displayed at wrong position, such as text-anchor:end in svg was not applied - see the Y axis labels. They are displayed over the axis, not on the left of the axis. Expected results: Y axis labels in example svg chart should be displayed to the left of the axis, as they are i.e. in Chrome. They were displayed correctly in FF from June 2012.
This looks like a regression from bug 655877 as the labels are positioned correctly when about:config?filter=svg.text.css-frames.enabled is set to false
Blocks: svgtext
Component: Untriaged → SVG
OS: Windows 7 → All
Product: Firefox → Core
Hardware: x86_64 → All
Comment 2•11 years ago
|
||
It seems to be right adjusting the space and then putting the text after that.
Updated•11 years ago
|
Attachment #829557 -
Attachment mime type: text/plain → image/svg+xml
Updated•11 years ago
|
Assignee | ||
Comment 3•11 years ago
|
||
We were getting the position assigned to the trimmed-away white space character, which doesn't have the right mPositions[].mPosition value to use for the positioning of the run. Haven't looked for where this bug was introduced or whether it was there from the initial landing of the new text support.
Updated•11 years ago
|
Attachment #829729 -
Flags: review?(longsonr) → review+
Assignee | ||
Comment 4•11 years ago
|
||
This bug (certain text in SVG documents could be positioned incorrectly) also probably isn't serious enough to land on Release; setting track? on current branches, though.
status-firefox25:
--- → affected
status-firefox26:
--- → affected
status-firefox27:
--- → affected
status-firefox28:
--- → affected
status-firefox-esr24:
--- → unaffected
tracking-firefox25:
--- → ?
tracking-firefox26:
--- → ?
tracking-firefox27:
--- → ?
tracking-firefox28:
--- → ?
Assignee | ||
Comment 5•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/6f5bbe846139
Comment 6•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6f5bbe846139
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Assignee | ||
Updated•11 years ago
|
Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 829729 [details] [diff] [review] patch [Approval Request Comment] Bug caused by (feature/regressing bug #): 839955 User impact if declined: some SVG content may display incorrectly Testing completed (on m-c, etc.): only just landed on m-c, but automated test added Risk to taking this patch (and alternatives if risky): low risk String or IDL/UUID changes made by this patch: N/A
Attachment #829729 -
Flags: approval-mozilla-beta?
Attachment #829729 -
Flags: approval-mozilla-aurora?
Comment 8•11 years ago
|
||
No need to track this, it's a regression from 21 but will take the low risk uplift to branches.
Updated•11 years ago
|
Attachment #829729 -
Flags: approval-mozilla-beta?
Attachment #829729 -
Flags: approval-mozilla-beta+
Attachment #829729 -
Flags: approval-mozilla-aurora?
Attachment #829729 -
Flags: approval-mozilla-aurora+
Comment 9•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/6753b1d2e902 https://hg.mozilla.org/releases/mozilla-beta/rev/37fd15101968
Assignee | ||
Comment 10•11 years ago
|
||
Bug 839955 where we turned the pref on is really where the regression is, so that's Firefox 25.
Updated•11 years ago
|
status-b2g-v1.2:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•