Open Bug 1131192 Opened 10 years ago Updated 2 years ago

RTL SVG text not being rendered correctly

Categories

(Core :: SVG, defect)

25 Branch
x86
All
defect

Tracking

()

People

(Reporter: bugzilla.puf9z, Unassigned)

References

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18 Steps to reproduce: Testcase located here: http://jsfiddle.net/k9rtm57v/ Issue happens in Firefox (I checked against 31.4 and 35.0.1). Behaviour is correct is other browsers like Chrome. To verify proper behaviour, run the jsfiddle in Chrome of Safari. When an svg text node contains RIGHT-TO-LEFT-EMBEDDING character (&#8235), and the node has a transform applied, the text does not render correctly. When a text-anchor : middle attribute is also specified, the rendering is even weirder. If I remove the rtl embedding character and add a direction=rtl to the text node, the rendering is correct. Actual results: See http://jsfiddle.net/k9rtm57v/ For an SVG text node: <text text-anchor="middle">&#8235;Test!&#8236;</text> Firefox renders the string as ! <spaces...> Test with the '!' character seemingly anchored to the left. Expected results: See http://jsfiddle.net/k9rtm57v/ in Chrome (or Safari) I expected the SVG text node <text text-anchor="middle">&#8235;Test!&#8236;</text> to render as !Test anchored in the middle.
Pushlog: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=5e226d928613&tochange=3a23afb038a5 Triggerted by; 3a23afb038a5 Cameron McCormack — Bug 839955 - Enable new SVG text frames. r=roc
Blocks: 839955
Component: Untriaged → SVG
Keywords: regression
OS: Mac OS X → All
Product: Firefox → Core
Version: 35 Branch → 25 Branch
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.