full-width-text
full-width-text copied to clipboard
Changed computedStyle return string, now it works in Firefox
This fixes issue #2
Thanks @mdesplenter. Two things:
- Given that
getStylefunction receives "font" as a parameter we should probably add this hack outside this function. Maybe in agetFontStylefunction. - The font shorthand that was previously being used includes more than just font-size and font-family. It includes font-style, font-variant, font-weight, font-size, line-height and font-family. The fix should include all those styles following the font shorthand format.
Here is a jsbin I was using some time ago to test getComputedStyle in various browsers: https://jsbin.com/yoholarina/1/edit?html,console
Maybe it can help you.