- From: Tyler Thrailkill via GitHub <noreply@w3.org>
- Date: Thu, 19 Feb 2026 17:58:06 +0000
- To: public-css-archive@w3.org
snowe2010 has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-values] Clarification on Simplification for clamp() with none values ==
The [spec for `clamp()`](https://drafts.csswg.org/css-values-4/#comp-func) details that it functions as `min()` or `max()` or `calc()`, depending on where `none` is specified, but the [section for Simplification](https://drafts.csswg.org/css-values-4/#calc-simplification) does not detail how `clamp()` should be simplified.
Chromium currently simplifies to `min()` or `max()`, but WebKit keeps `clamp()`:
```html
<!DOCTYPE html>
<body>
<pre><script>
for (let v of ["clamp(none, 100px, 50%)", "clamp(none, 100px, 150px)"]) {
document.body.style.width = v;
document.writeln(`${v}: ${document.body.style.width}`);
}
document.body.style.width = "";
</script></pre>
```
It seems clarification is needed here on how to simplify `clamp` in partial simplification cases. Should we Serialize to min/max when partial simplification occurs? or should we serialize to clamp?
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13535 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 19 February 2026 17:58:06 UTC