Re: [csswg-drafts] [css-values] Make min and max value optional in `clamp()` (#9713)

@ByteEater-pl The idea is that `min()` and `max()` can be confusing, e.g. someone wants a calculation like `var(--a) * var(--b) + var(--c)` but enforcing a minimum of 0px. If they are thinking in terms of adding a minimum threshold they might be tempted to use `min()`, but actually they need `max()`.

But I'm not sure if this proposal will really help much, people who misunderstands what `min()` does will probably use it anyway, and people aware of this "gotcha" can just use `max()` indeed.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9713#issuecomment-1879344510 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 5 January 2024 22:41:25 UTC