- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 14 Feb 2024 19:22:39 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[css-values] Make min and max value optional in `clamp()` ``, and agreed to the following: * `RESOLVED: Add 'none' keyword for upper/lower bounds of clamp().` <details><summary>The full IRC log of that discussion</summary> <emilio> lea: the reason we introduced clamp() is that clamping with min() / max() is counter-intuitive, upper bound means min() and lower bound you need max()<br> <emilio> ... however author still need min() / max() when only have a lower bound or upper bound<br> <emilio> ... I found myself doing clamp(.., infinity) or such thing<br> <fantasai> ... suggestion in issue is to add a 'none' keyword<br> <emilio> ... so we discussed it in the issue, and it seemed like 'none' was straight-forward<br> <emilio> ... I even found author infographics about how confusing this is<br> <TabAtkins> +1 to this, as I said in the thread<br> <emilio> q+<br> <oriol> q+<br> <astearns> ack emilio<br> <TabAtkins> emilio: what's the reason for 'none' vs omission<br> <fantasai> fantasai: beause there's commas involved<br> <fantasai> TabAtkins: having an empty spot indicated only by presence of commas<br> <florian> q+<br> <fantasai> TabAtkins: is extremely awkward (and also violates comma elison rules)<br> <dholbert> scribe+<br> <dholbert> emilio (IRC): I was thinking you could clamp with 2 values<br> <dholbert> TabAtkins (IRC): which is which, upper vs lower<br> <astearns> ack oriol<br> <dholbert> emilio (IRC): then 'none' makes sense<br> <emilio> oriol: I kinda disagree with min() / max() being workarounds<br> <emilio> ... they mathematically are the same, but I agree there's some confusion<br> <emilio> ... not sure if this will completely solve it<br> <emilio> ... they may not realize that clamp(none) can help it<br> <emilio> ... this seems a pretty straight-forward generalization so seems fine, tho<br> <emilio> lea: when I said workaround it's a UX argument, not a mathematical argument<br> <astearns> ack florian<br> <emilio> ... when something is used for it's non-primary purpose it's a workaround<br> <lea> q+<br> <fantasai> florian: from utility point of view, setting both lower and upper bound to none is useless, but should we still allow it in the syntax?<br> <emilio> florian: setting both to none is useless<br> <lea> q-<br> <fantasai> TabAtkins: keep them both, because might be in a variable<br> <emilio> ... but should we keep them?<br> <fantasai> astearns: Seems we're all in violent agreement here<br> <fantasai> RESOLVED: Add 'none' keyword for upper/lower bounds of clamp().<br> <emilio> PROPOSAL: Allow none as firs or last arguments for clamp()<br> <lea> 🎉<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9713#issuecomment-1944449961 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 14 February 2024 19:22:42 UTC