Snap.js icon indicating copy to clipboard operation
Snap.js copied to clipboard

IE8: window.getComputedStyle is undefined

Open jaketrent opened this issue 11 years ago • 2 comments

In IE8 on Win XP, I get an error on the page.

screen shot 2013-07-22 at 11 21 57 am

Traced to this line:

win.getComputedStyle(settings.element)[cache.vendor+'Transform'].match(/\((.*)\)/)

Apparently the utils.canTransform feature detection passes, but the win.getComputedStyle function is unavailable.

jaketrent avatar Jul 22 '13 17:07 jaketrent

I add the same problem with IE9 on Windows Seven, and your fix resolved it. Thanks!

fpetitit avatar Aug 30 '13 09:08 fpetitit

win7+IE8, same problem, and this fixed it.

Xananax avatar Jul 28 '14 23:07 Xananax