How do I get the font size of a SvgTextElement when it could be set by CSS and/or inherited?
\'getAttributeNS\' only works if the Element has the property directly a
This is really more in the nature of a comment. The following slightly simpler formulation works:
var fontSize = window.getComputedStyle(element).fontSize;
If you want to be able to search on the phrase 'font-size' then the following works:
var fontSize = window.getComputedStyle(element)['font-size'];