-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Empty calculation passed to css in 4.2.0 #4256
Labels
Comments
PR welcome |
Would this address it? |
fschinkel
added a commit
to eclipse-scout/scout.rt
that referenced
this issue
Jan 11, 2024
min/max functions with css variables are not handled correctly by less. LESS: min(var(--variable-1), var(--variable-2)) CSS: min() This issue was occurs from version 4.2.0, therefore downgrade to 4.1.3. see less/less.js#4256 370618
@SoonIter Same question as here: #4256 (comment) |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To reproduce:
Use any
min
ormax
function alongside a CSS variable. The breaking change in my deployed environment is:However, another call to
min
without CSS variables is passed appropriately:Current behavior:
In
4.1.3
, both themax-width
statement and the--caption-width
variable are passed as-is to the CSS file. In4.2.0
, the CSS file produced instead hasmax-width: min();
.Expected behavior:
A non-empty
max-width: min();
.Environment information:
less
version: 4.2.0nodejs
version: 18.13.0operating system
: (occurs on both windows and mac)This occurs with
max
, as well, but notcalc
, which makes me think it's related to #3719.The text was updated successfully, but these errors were encountered: