You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.) Less.js behaviour follows CSS specification which requires no space between the unary '-' and the number behind it:
correct negative number: -3
incorrect negative number: - 3
2.) When this situation happens, Less.js produces incorrect CSS while less4j produces correct one. Once we fix the difference, we should make less4j produce warning when this happend. It is likely that the author of .less file did not planned to produce incorrect .css.
3.) Handling of spaces in expressions is already subtle and thus may have confuse the user. Difference between less4j and less.js makes situation even more complicated and may be even more confusing - therefore it must be removed.
4.) Functions: the same applies for functions. This makes it impossible to combine unary '-' and a function.
This is accepted by less.js but incorrect in less4j: @variable: -; I'm adding it to this issue, since it is similar problem and does not seem to be important.
Closing this, since it seem like there is always going to be something more important to do. Can be re-opened only if it turns out there is real-life situation where it matters.
Less.js does not allow space between unary minus and a number behind it, less4j currently omits this requirement.
Input:
Less.js:
Less4j:
Four important points:
1.) Less.js behaviour follows CSS specification which requires no space between the unary '-' and the number behind it:
-3
- 3
2.) When this situation happens, Less.js produces incorrect CSS while less4j produces correct one. Once we fix the difference, we should make less4j produce warning when this happend. It is likely that the author of .less file did not planned to produce incorrect .css.
3.) Handling of spaces in expressions is already subtle and thus may have confuse the user. Difference between less4j and less.js makes situation even more complicated and may be even more confusing - therefore it must be removed.
4.) Functions: the same applies for functions. This makes it impossible to combine unary '-' and a function.
Input:
Less.js output:
The text was updated successfully, but these errors were encountered: