grunt-stripmq icon indicating copy to clipboard operation
grunt-stripmq copied to clipboard

Support IE9/10 media hack?

Open davatron5000 opened this issue 9 years ago • 3 comments

Trying to use an IE9/10 specific @media screen and (min-width:0\0) hack (see "Moving IE specific hacks into media blocks") but StripMQ (what we use for IE8 support) is exiting with an error:

{ [Error: Stripping media queries failed.] origError: [TypeError: Cannot read property '1' of null] }

Would it be possible to support this weird hack? As a result, we'll have to degrade IE9/10 so that StripMQ can still work, but ideally StripMQ would maybe just ignore media queries it doesn't understand?

I think I lifted this hack from http://wtfforms.com: https://github.com/mdo/wtf-forms/blob/master/wtf-forms.css#L186-L212

Thanks!

davatron5000 avatar Apr 24 '15 15:04 davatron5000