Subject: | CSS::Minifier::XS breaks calc() |
The W3C specification of the CSS calc() function says:
'Note that the grammar requires spaces around binary ‘+’ and ‘-’ operators. The ‘*’ and ‘/’ operators do not require spaces. '
(see http://www.w3.org/TR/css3-values/#calc-syntax).
CSS::Minifier::XS removes all spaces and therefore breaks the calc function. Here is an example:
.foo { width: calc(100% - 30px) }
becomes
.foo { width: calc(100%-30px) }
which is not valid CSS and browsers ignore the width property.