In most browsers, the following would work.
window.onload = function(){ console.log( document.getElementById(\'svgElm\').getBoundingClientRect().width );
This Firefox bug was fixed in Firefox 33 which was released on 14 October 2014.
See bug 530985 for details.