- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Wed, 11 Mar 2026 15:14:56 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-values] Clarification on Simplification for clamp() with none values`, and agreed to the following: * `RESOLVED: when possible we simplify clamp() to min() or max()` <details><summary>The full IRC log of that discussion</summary> <ydaniv> TabAtkins: currently the spec for clamp() says it acts like a max/min depending on where you use the value<br> <ydaniv> ... [summarizing description]<br> <romain> q+<br> <ydaniv> ... per spec Chrome is wrong, doesn't matter much to me how we go on with this<br> <astearns> ack romain<br> <emilio> q+<br> <ydaniv> ... unless anybody has a reason to care about that behavior specifically, I suggest open a bug on Chrome and close no change<br> <ydaniv> romain: How does this interact with color interpolation, like color-mix where we also have none, where this can be simplified or not<br> <ydaniv> ...<br> <ydaniv> TabAtkins: those nones are unrelated keywords, so should not have any effect<br> <ydaniv> romain: I think lea had some note regarding that<br> <ydaniv> ... where substituting none in color function is not the same<br> <ydaniv> TabAtkins: you can not write none into a claculation<br> <ydaniv> ... so doesn't have any connection with this none, it's not part of calculation, this none is only related as value to clamp()<br> <ydaniv> ... so it can't sub-in for that<br> <ydaniv> romain: ok, thanks<br> <astearns> ack emilio<br> <ydaniv> emilio: I don't care which way, but in FF it is implemented and was easier to implement.<br> <ydaniv> ... I'm ok with no change, it's a bit weird, FF actually does the same thing as Chrome but we did not ship it yet<br> <ydaniv> TabAtkins: so it's ok either way, don't care much<br> <ydaniv> emilio: my opinion is that it's simpler to implement with min/max<br> <ydaniv> astearns: is this an over simplification in any way?<br> <ydaniv> TabAtkins: no, you don't get one or the other, but it's the exact behavior<br> <ydaniv> ... we added the none since using clamp() as min/max is more handy<br> <ydaniv> astearns: don't see anyone from WebKit, we could resolve as a way to get their opinion<br> <emilio> sg<br> <ydaniv> TabAtkins: SGTM<br> <ydaniv> PROPOSED RESOLUTION: when possible we simplify clamp() to min() or max()<br> <ydaniv> astearns: objections?<br> <ydaniv> RESOLVED: when possible we simplify clamp() to min() or max()<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13535#issuecomment-4039940264 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 11 March 2026 15:14:57 UTC