Closed
Bug 1055968
Opened 10 years ago
Closed 9 years ago
SVG Text on a path is broken
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
WORKSFORME
mozilla35
People
(Reporter: tavmjong, Unassigned)
References
Details
(Keywords: regression)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0 (Beta/Release) Build ID: 20140819030202 Steps to reproduce: Displayed SVG with text on path. Actual results: Text missing. Expected results: Displayed text. Here is an example where text is displayed, but displayed incorrectly: http://www.w3.org/TR/SVG/images/text/toap01.svg For correct display see: http://www.w3.org/TR/SVG/text.html#TextPathElement This is a regression as this worked in the past.
Updated•10 years ago
|
Component: Untriaged → SVG
Product: Firefox → Core
Updated•10 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Updated•10 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 1•10 years ago
|
||
There are plenty of paths that do work so I wonder what's special about this one?
Comment 2•10 years ago
|
||
Regression window(m-i) Good: https://hg.mozilla.org/integration/mozilla-inbound/rev/26d8874e7fdc Mozilla/5.0 (X11; Linux i686; rv:34.0) Gecko/20100101 Firefox/34.0 ID:20140801091216 Bad: https://hg.mozilla.org/integration/mozilla-inbound/rev/f8785a729a51 Mozilla/5.0 (X11; Linux i686; rv:34.0) Gecko/20100101 Firefox/34.0 ID:20140801091420 Pushlog: http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=26d8874e7fdc&tochange=f8785a729a51 Triggered by: 150cdebe837f Bas Schouten — Bug 1039568: Add a capture DrawTarget to Moz2D. r=jrmuizel
Blocks: 1039568
Keywords: regression
Comment 3•10 years ago
|
||
[Tracking Requested - why for this release]:
Comment 4•10 years ago
|
||
This seemed to be fixed in Latest Nightly34.0a1. Reporter, could you please confirm ?
Flags: needinfo?(tavmjong)
Reporter | ||
Comment 5•10 years ago
|
||
Yes, the test file (http://www.w3.org/TR/SVG/images/text/toap01.svg) now displays correctly. Thanks! My file that triggered this bug report still does not work; it appears that a script is messing things up and this bug was a red herring. Argh. While investigating this, I id noticed that the 'x' attribute on the text element is being ignored. According to the SVG spec (last paragraph of 10.13.3 in SVG 1.1 Second Edition) an 'x' attribute on horizontal <text>, ... represents a new absolute offset along the path. It is not 100% clear how this melds with 'startOffset' but Chrome adds the 'x' value to the 'startOffset' value in order to position the text, which seems to be reasonable thing to do. I guess this should be opened as a different bug.
Flags: needinfo?(tavmjong)
Comment 6•10 years ago
|
||
Please raise a new bug for the x + startOffset issue.
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Comment 8•9 years ago
|
||
(In reply to Robert Longson from comment #7) > bug 1068603 fixes this Are you sure? (If so: which part of this bug does bug 1068603 fix? It sounds like the original bug was really fixed back in September, per comment 4 / comment 5. And the residual x/startOffset issue didn't sound like it would've been affected by bug 1068603, unless it happened to require "C" path commands for straight lines.) (Having said that: from local testing, I *can* confirm that text-on-a-path didn't draw at all for straight-line "C" commands like in d="M0,100 C100,100 150,100 200,100" in yesterday's nightly, and draws correctly in today's nightly. So that scenario was broken & was fixed by bug 1068603. I'm just not sure that's part of this bug here.)
Flags: needinfo?(longsonr)
Comment 9•9 years ago
|
||
Doesn't work on Firefox 34 for me, does on trunk. The startOffset issue should be separated into a different bug per comment 6.
Flags: needinfo?(longsonr)
Comment 10•9 years ago
|
||
Ah -- I can confirm this is broken in Firefox 34 (text zig-zags instead of curving). This conflicts slightly with comment 4, but it probably just means something was backed out or tweaked between comment 4 & Firefox 34's release. This worked in yesterday's nightly, though (before bug 1068603's patch made it to trunk), so I don't think bug 1068603 is what fixed it. --> Removing dependency & adjusting resolution to WFM.
No longer depends on: 1068603
Resolution: FIXED → WORKSFORME
Comment 11•9 years ago
|
||
(Good news: I just tested Firefox 35 beta, and this does seem to be fixed there.)
status-firefox34:
--- → affected
status-firefox35:
--- → fixed
Target Milestone: mozilla37 → mozilla35
You need to log in
before you can comment on or make changes to this bug.
Description
•