-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In some cases px fallbacks for rem units are stripped during minification #363
Comments
@dotherightthing: have you tried specifying the compatibility: "ie8" Also, please check your local node_modules and make sure you are using the latest clean-css module (you can remove the whole folder and do |
Hi @XhmikosR, I've added the
├─┬ [email protected] │ └── [email protected] └─┬ [email protected] └─┬ [email protected] ├── [email protected] └─┬ [email protected] └── [email protected] The task is still stripping Thanks, |
Ok, then I guess this is really a bug. /CC @jakubpawlowicz |
Oddly I haven't received a single notification yesterday. @dotherightthing I think the new, advanced optimiser messes up the merging. Let me take a closer look. In the meantime please use |
Hi, I've tried to add clean-css into my Grunt build via grunt-contrib-cssmin, but it is failing as follows:
When using
rem
(root relativeem
s) it is good practice to provide apx
fallback for MSIE8:rem
units so it ignores the second rule.rem
units so they ignore the first rule.With certain properties (eg
padding
is affected, butfont-size
is ok),clean-css
removes thepx
fallback during minification. The result is a sub-standard aesthetic in MSIE8.Here's my Grunt configuration object:
Thanks,
Dan
The text was updated successfully, but these errors were encountered: