I'm try to compile this .less code to .css via lessphp and get this error:
Fatal Error:
====================
infinite loop detected: @pos-x: failed at `background-position: @pos-x 0; }` line: 3
Here is my code.
@pos-x : 0;
@w : 30px;
.a { background-position: @pos-x 0; }
@pos-x: @pos-x - @w;
.b { background-position: @pos-x 0; }
What's wrong with it? Can i use varable overriding in LESS?