gruntjs / grunt-contrib-cssmin

Compress CSS files.
http://gruntjs.com/
MIT License
793 stars 147 forks source link

css calc height fallback for older browsers #223

Closed Ghostavio closed 9 years ago

Ghostavio commented 9 years ago

Hello, so I'm using the following in my code:

height: 100%;
height: calc(100% - 55px);

So for browsers without calc support, the first value should be taken, but cssmin is removing it and keeping just height: calc(100% - 55px);, there's anyway to keep this particular duplicated css attribute without disabling all the duplication removal, or maybe creating a rule for this specific case? In case it's not possible, how would I completely disable the check for duplication on the grunt plugin?

Thanks.

sindresorhus commented 9 years ago

From the readme:

Issues with the output should be reported on the clean-css issue tracker.