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
Hi @sebastiandammark 👋, I'm here to help you with any bugs, questions, or contributions you have while you wait for a human maintainer.
To achieve the expected behavior, you need to ensure that the calculation is performed before assigning the value to the CSS variable. LESS does not automatically compute expressions within CSS custom properties. Here's how you can modify your code to achieve the desired output:
The Less compiler doesn’t evaluate arithmetic expressions directly when assigning values to CSS custom properties. To work around this, you can pre-calculate the values using Less's each function and then assign the computed results to the custom properties.
@defaultFontsizeMultiplier: 16;
To reproduce:
Current behavior:
When trying to calculate the value of the variable the output is looked upon as a string.
Expected behavior:
Environment information:
I'm just testing it here: https://lesscss.org/less-preview/
The text was updated successfully, but these errors were encountered: