Subject: | Bug CSS Minifiee XS CPAN |
Date: | Tue, 31 Mar 2015 10:14:26 -0600 |
To: | bug-CSS-Minifier-XS [...] rt.cpan.org |
From: | Isaac Montoya <edgar.montoya [...] televisatim.com> |
Hello
I found the next issue
When a value of a CSS property is 0, the unit is unnecessary and should be
removed by the minifier, but this clause doesn't apply when the property is
into a calc function.
For example, If I have
width: -webkit-calc(300px - 0px);
width: -moz-calc(300px - 1px);
width: calc(300px - 0px);
and then the unit is removed by the minifer:
width: -webkit-calc(300px - 0);
width: -moz-calc(300px - 1px);
width: calc(300px - 0);
it crash!
Please take my message in your consideration.
and please let me know how can I get fix it.