full-width-text
full-width-text copied to clipboard
Bug in Firefox / IE
the part of the getStyle function
return getComputedStyle(el).getPropertyValue(prop);
returns an empty string and therefore the font isn't properly resized
Yep, firefox returns "" for:
getComputedStyle(el).getPropertyValue("font")
But it does return something for font-size and family:
>getComputedStyle(el).getPropertyValue("font-family")
"sans-serif"
>getComputedStyle(el).getPropertyValue("font-size")
"75.5px"
I'm looking for a way to ask firefox (and IE) to calculate the "font" property for me.
I fixed it with changing the following rule: return getComputedStyle(el).getPropertyValue("font-size") + " " + getComputedStyle(el).getPropertyValue("font-family");