I want to position a string of text inside the bottom right corner of an svg rect
element in both RTL and LTR languages. Unfortunately, IE obeys the text-anchor
attribute strictly regardless of text direction, whereas Chrome, FF, Safari and Opera swap the meaning of
text-anchor: start
and text-anchor: end
in RTL mode. How can I position the text correctly cross-browser and in an RTL-compatible manner?
LTR: http://jsfiddle.net/ybr1s4d4/ (correct)
RTL: http://jsfiddle.net/ybr1s4d4/2/ (doesn't work in IE9+, don't care about IE8-)