How to prevent Less from trying to compile CSS calc() properties?

The Less compilers that I’m using (OrangeBits and dotless 1.3.0.5) are aggressively translating

body { width: calc(100% - 250px - 1.5em); }

into

body { width: calc(-151.5%); }

Which is obviously not desired. I’m wondering if there is a way to signal to the Less compiler to essentially ignore the attribute during compilation. I’ve searched through the Less documentation and both compilers’ documentation, and I could not find anything.

Does Less or a Less compiler support this?

If not, is there a CSS extender that does?

4 Answers
4

Leave a Comment