leafo / lessphp

LESS compiler written in PHP
http://leafo.net/lessphp
Other
2.2k stars 529 forks source link

Error parse: calc function #650

Open momo2555 opened 4 years ago

momo2555 commented 4 years ago

Hi, I have a problem when I use in my less file the css function "calc". In fact when I write.

margin-left: calc(50% - 10px); I obtain in my parsed css file: margin-left: calc(40%); it's normale?

Thank you.

jootamas commented 4 years ago

Hi, same error, but works with this "quick fix":

https://stackoverflow.com/questions/17904088/disable-less-css-overwriting-calc