Are there are CSS compressors online which do not remove any of the CSS browser hacks.
E.g: Using: cleancss.com it makes no difference which options I set it will always remove the *display for IE display inline-block hack.
a {
border-radius:5px
display: inline-block;
*display: inline;
zoom: 1;
text-shadow: 0 2px 3px rgba(0,0,0,0.4);
-moz-border-radius:5px;-webkit-border-radius:5px;
}
CSS Compressor and Clean CSS usually work for me, although I prefer to use a different stylesheet for all previous versions of internet explorer. It is usually better to keep previous browser supporting css seprately. Or keep hacks in a seprate file and appened it to the compressed css.
In your case, however, the compressors do remove
*I do not know any online compressors which preserve the hacks, however, I can offer workarounds.
A solution would be to use hacks on selector rather than on attribute.
Here are a couple of examples :
Check here about the other hacks available : http://paulirish.com/2009/browser-specific-css-hacks/
If that does not work for you another workaround, might be a little tiresome, but before compression, add some unique value before a hack like
and then after compression using a text editor replace all
#HACK#with*