SVG text is drawn with wrong position

RESOLVED FIXED in mozilla29

Status

()

RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: alice0775, Assigned: heycam)

Tracking

({dev-doc-needed, regression, site-compat})

25 Branch
mozilla29
dev-doc-needed, regression, site-compat
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

(Reporter)

Description

5 years ago
Created attachment 8355802 [details]
screenshot

When I tested bug 812795, I noticed a problem.

Steps To Reproduce:
1. Open attachment 682767 [details] of Bug 812795

Actual Results:
"TEXT ON PATH" is shifted to the right and truncated.

Expected Results:
"TEXT ON PATH" is drawn at the center

Regression window(m-c)
Good:
http://hg.mozilla.org/mozilla-central/rev/cbb24a4a96af
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20130629 Firefox/25.0 ID:20130629065543
Bad:
http://hg.mozilla.org/mozilla-central/rev/614e1793e958
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20130629 Firefox/25.0 ID:20130629173041
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=cbb24a4a96af&tochange=614e1793e958


Regression window(m-i)
Good:
http://hg.mozilla.org/integration/mozilla-inbound/rev/5e226d928613
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20130629 Firefox/25.0 ID:20130629052942
Bad:
http://hg.mozilla.org/integration/mozilla-inbound/rev/3a23afb038a5
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20130629 Firefox/25.0 ID:20130629060904
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=5e226d928613&tochange=3a23afb038a5

Suspected;
	3a23afb038a5	Cameron McCormack — Bug 839955 - Enable new SVG text frames. r=roc
(Assignee)

Comment 1

5 years ago
I wonder what is making this document not render at all in Chrome and Safari.  Renders as expected in IE10.
(Assignee)

Comment 2

5 years ago
Created attachment 8355826 [details]
reduced test case

Here's a smaller test case that does render in Chrome/Safari.

If I remove the xml:space="preserve", move it down on to the <textPath>, or remove the white space characters that precede the <textPath>, then it renders correctly.
Assignee: nobody → cam
Status: NEW → ASSIGNED
(Assignee)

Comment 3

5 years ago
Created attachment 8355836 [details] [diff] [review]
patch
Attachment #8355836 - Flags: review?(longsonr)
(Assignee)

Updated

5 years ago
OS: Windows 7 → All
Hardware: x86_64 → All
Comment on attachment 8355836 [details] [diff] [review]
patch

Please add the Public Domain header to the tests unless there's some reason not to.
Attachment #8355836 - Flags: review?(longsonr) → review+
https://hg.mozilla.org/mozilla-central/rev/362eeec1dc96
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Keywords: dev-doc-needed, site-compat
You need to log in before you can comment on or make changes to this bug.