keithclark / selectivizr

selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8.
1.71k stars 246 forks source link

Problem with minified HTML/CSS on IE7/IE8 #66

Open igorprado opened 11 years ago

igorprado commented 11 years ago

I'm working with Middleman to test locally and build my files, minifying then.

Testing locally (where there are any kind of minifying), selectvizr works fine in IE7 and IE8. On build, where everything is minified, it doesn't work at all. And no error is given at console.

Solution for my case: disable HTML and CSS minify for instance, but I believe that's an issue.

Sorry my bad english.

flatsteve commented 11 years ago

I have the same issue. When I set Compass output_style = :compressed, Selectivizr does not append the .slvzr class.

When I leave my stylesheet uncompressed Selectivizr works as expected.

If anyone has this same problem; setting output_style = :compact seems like the best compromise (when IE 8 support is essential to your project).

Thanks for a great script Keith.

pluff commented 10 years ago

+1 to this one. Script doesn't work with 1-lined css.

CHEWX commented 10 years ago

Yup +1, I have this problem too I think. It's the only reason why I can see why it is not working anyway.

ArmorDarks commented 9 years ago

Would be great to see fix for that... But since repo seems to be dead, there is very little hope for that...