Why does getComputedTextLength () give different results in Chrome and Firefox?

I use getComputedTextLength () in SVG text elements to wrap text strings. However, I have 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/

Why is the result different and, more important, is it corrected?

(The values ​​from getBBox () seem to be in order, so I'm using this as a workaround at the moment).

+6
source share
1 answer

Should be fixed in Firefox 25 when large text overwriting SVG goes live .

+3
source

Source: https://habr.com/ru/post/915378/


All Articles