- From: Mike Bostock <mbostock@cs.stanford.edu>
- Date: Wed, 7 Dec 2011 10:10:47 -0800
- To: www-svg <www-svg@w3.org>
Received on Wednesday, 7 December 2011 18:11:48 UTC
It appears that Firefox and Opera don't observe the dx attribute on text elements in conjunction with text-anchor "middle" or "end". For example, I would expect the dx attribute here to shift the text left by 10 pixels, and it does on WebKit, but not Firefox: <text dx="-10" text-anchor="middle">Hello, world!</text> This bug was reported more than three years ago, and I haven't seen any progress on it: https://bugzilla.mozilla.org/show_bug.cgi?id=454970 Test case here: http://zajec.net/bug/view/svg.text.anchor It's fairly easy to work-around this behavior by modifying the x attribute directly, but it's an annoying discrepancy between browsers. Which behavior is correct? Mike
Received on Wednesday, 7 December 2011 18:11:48 UTC