Issue 83: exportCSS and @font-face
Status:  New
Owner: ----
Reported by k1rby...@gmail.com, Oct 29, 2010
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
#1 seu...@gmail.com
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
Mar 31, 2011
#2 seu...@gmail.com
patch off r30
spriteme-fontface.patch
482 bytes   View   Download
Mar 31, 2011
#3 seu...@gmail.com
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
spriteme-fontface2.patch
541 bytes   View   Download
Aug 14, 2011
#4 d...@driverdan.com
I just ran into this problem as well. Is the solution going to be pulled into the code?
Jun 14, 2012
#5 siemens1993@gmail.com
Just had the same problem - when will a fix be available?
My workaround was to remove the corresponding lines temporarily.