Less templates appear to be in strict maths mode (ie more parentheses)

Xon

Well-known member
Affected version
2.3.0 Beta 4
Math expressions in .less templates seem to now require being wrapped by parentheses e.g.
Code:
property: (0.8 * @xf-style-property);
Previously this was only necessary if the expression was ambiguous (such as multiple padding values).

I haven't seen this reported as a bug.

But this makes porting less to XF2.3 quite annoying as it is unsure when existing less will work as-is or just fails silently.
 
Yeah, drove me a bit crazy too; did some refactoring to compensate, but I'm sure I missed something in one of ours..
 
Top Bottom