fallback to getComputedStyle when offset is undefined fix #2506

On Firefox, offsetWidth and offsetHeight are undefined on a SVG element

See :  https://bugzilla.mozilla.org/show_bug.cgi?id=649285
Working fiddle : http://jsfiddle.net/dDbxg/7/