I would like to express the following CSS in LESS:
.a { min-height: calc(2em + 4px); }
So, to prevent LESS from trying to compute, I wrote this expression using the LESS escape syntax :
.a { min-height: ~'calc(2em + 4px)'; }
However, the LESS ENGINE MONITORING discards spaces and emits:
.a{min-height:calc(2em+4px);}
This is problematic because webkit cannot correctly calculate 2em+4px , while 2em_+_4px works fine (underscores are added for clarity.) It seems like a real bug here in webkit, since I hope CSS3 calc syntax allows not to be spaces between tokens.
css css3 less whitespace webkit
Will bradley
source share