Skip Menu |

This queue is for tickets about the CSS-Minifier-XS CPAN distribution.

Report information
The Basics
Id: 85350
Status: resolved
Priority: 0/
Queue: CSS-Minifier-XS

People
Owner: Nobody in particular
Requestors: soehnlein [...] nureg.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.08
Fixed in: 0.09



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.
I just ran into this bug as well. Any ETA on a fix?
Resolved in v0.09, where we no longer minify the whitespace around "+" or "-" characters.