Re: [svgwg] 'text-anchor' and Arabic text (#628)

As the spec is written, the start/end anchoring should only be affected by the `direction` property.  With the default `direction` of `ltr`, start should be left and end should be right.  The text itself can have bidirectional reordering inside it but the anchoring is based on the total length after reordering.

So, Firefox & librsvg would be the correct rendering (although the centering is a bit messed up in Firefox by whitespace getting tacked on to one end of each span).

There may be two things going on in @RazrFalcon's example:

- the browsers could be guessing direction based on content
- the browsers could be getting confused with direction switching for different `<tspan>` within the same `<text>`

I'd need to do a little exploring to figure out which is happening. Maybe a mix of both and just general bugginess.

Either way, some spec clarifications and *lots* of tests are probably required.

PS, another demo, without the tspans but with a bit of bidirectionality confusion:
https://oreillymedia.github.io/SVG_Text_Layout/ch07-rtl-vertical-files/text-direction.html

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/628#issuecomment-454172399 using your GitHub account

Received on Monday, 14 January 2019 21:42:24 UTC