We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
max() + calc()
$ lessc --version lessc 4.1.1 (Less Compiler) [JavaScript] $ lessc <(echo 'body { padding: max(1em, calc(50vw - 25rem)); } ') body { padding: 1em; }
Expected output:
body { padding: max(1em, calc(50vw - 25rem)); }
Any subset of the expression (e.g. max(1em, 50vw) or calc(50vw - 25rem)) works fine.
max(1em, 50vw)
calc(50vw - 25rem)
The text was updated successfully, but these errors were encountered:
Having the same issue with nested var function in min();
min()
eg.
min(var(--maxWidth, 50rem), 100%)
compiles to
100% instead of expected min(var(--maxWidth, 50rem), 100%)
100%
Seems to execute less-provided min function instead of the one from vanilla CSS.
Sorry, something went wrong.
calc inside max is redundant
calc
max
max(1em, calc(50vw - 25rem)) can be max(1em, 50vw - 25rem)
max(1em, calc(50vw - 25rem))
max(1em, 50vw - 25rem)
However, max(1em, 50vw - 25rem) compiles to max(1em, 25vw) instaed of max(1em, 50vw - 25rem)
max(1em, 25vw)
Related issue
A workaround is ~"max(1em, 50vw - 25rem)"
~"max(1em, 50vw - 25rem)"
Hi @matthew-dean @iChenLei. Is there any chance the fix for this bug can be merged and published? Thanks.
Successfully merging a pull request may close this issue.
Expected output:
Any subset of the expression (e.g.
max(1em, 50vw)
orcalc(50vw - 25rem)
) works fine.The text was updated successfully, but these errors were encountered: