$('svg').height()
Just have stumbled upon an interesting bug (?) which appears in Mozilla when trying to get svg height. While you are trying to set through css SVG container size in percent, jQuery svg.height() will return not a pixel value, but a percent value.
Chrome works fine. Just open this fiddle in Mozilla Firefox and Chrome and compare results: http://jsfiddle.net/Ltew9pjb/3/
The answer for now, is simple, if SVG uses display:none, Mozilla Firefox for some reason will return percent value, and when there is no display: none, Mozilla will return px value. I don't know is it really a bug or not, but this how it works now. Check this fiddle: http://jsfiddle.net/Ltew9pjb/4/
So I want to ask is it a real Mozilla Firefox or jQuery bug, or something else?