I would like to express the following CSS in LESS:
.a {
min-height: calc(2em + 4px);
}
So, in order to prevent LESS from attempting a computation, I've written the expression using the LESS escaping syntax:
.a {
min-height: ~'calc(2em + 4px)';
}
However, LESS's minifying engine is removing the whitespace, and emitting:
.a{min-height:calc(2em+4px);}
This is problematic because webkit fails to properly compute 2em+4px
, whereas 2em_+_4px
works fine (underscores added for clarity.) It seems that the real bug here is in webkit, as I would hope that the syntax of CSS3 calc allows there to not be whitespace between tokens.