| Issue 83: | exportCSS and @font-face | |
| 5 people starred this issue and may be notified of changes. | Back to list |
Like your problem with @media xxx there's a problem with @font-face, it throws an error "Illegal operation on WrappedNative prototype object" at line 701 : var bgPos = rule.style.backgroundPosition; To fix it I just modified the conditions above it to : if ( "undefined" === typeof(rule.style) || /^@font-face/.test(rule.cssText) ) Seems to work now in firefox 3.6.12 (not tested in other browsers)
Mar 31, 2011
patch off r30
Mar 31, 2011
actually, this is prolly better, instead of checking if it is a font-face rule, it's prolly better to check if it isn't a css style rule :P
Aug 14, 2011
I just ran into this problem as well. Is the solution going to be pulled into the code?
Jun 14, 2012
Just had the same problem - when will a fix be available? My workaround was to remove the corresponding lines temporarily. |
my solution was changing line 703 from if ( -1 != rule.selectorText.indexOf('spriteme') ) { to if (rule instanceof CSSFontFaceRule || -1 != rule.selectorText.indexOf('spriteme') ) { works on chrome, which is what I was after