-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unwanted LESS calculations applied on CSS properties with "arithmetic-like" values #32
Comments
Do you need a strict math operation?
Or is the default or is the default lessc behavior ok for you? The default behavior handle the problem of the "font" property but not of the "border-radius" property. |
Please try the snapshot if this solve your problems. |
Yes - with the snapshot the font property is handled correctly in my case and luckily there is no use of border-radius in the "problematic" way within the default styles. |
The fix for your problem has produce a regression. I have rewrite it. Please try again the snapshot version if it work continue for you. Thanks. |
When integrating JLessC as an alternative to LESS engine in the Share client of Alfresco ECM I encountered an instance where JLessC incorrectly evaluated a valid CSS property value as an arithmetic operation. This problem has affected less.js in the past (i.e. #146) as well.
The CSS specifications define some properties to allow for value expressions that look like arithmetic operations but should not be treated / evaluated as such. This affects e.g. the
font
orborder-radius
properties. In my case I have a vendor provided CSS rulethat is processed by JLessC to
The text was updated successfully, but these errors were encountered: