I'm using getComputedTextLength() on SVG text elements to wrap text lines. However, I get different results in Firefox and Chrome. Here is an example that gives different results using Chromium 18.0 and Firefox 12.0: http://jsfiddle.net/cBSp4/2/
How come the result is different and, more importantly, is it fixable?
(Values from getBBox() seem to be alright, so I'm using that as a workaround at the moment).
Should be fixed in Firefox 25 when the big SVG text rewrite goes live.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With