- From: Ian Kilpatrick via GitHub <noreply@w3.org>
- Date: Mon, 09 Mar 2026 16:28:28 +0000
- To: public-css-archive@w3.org
You can achieve the effect with `calc-size()`
Part of the issue is that with just `min-height`, `height`, and `max-height` can can't apply 3 minimums. With `calc-size()` you can.
E.g. adjusting @bramus demo:
```
.select {
background: white;
position: fixed;
position-area: bottom span-right;
border: 1px solid black;
overflow: auto;
min-height: calc-size(fit-content, min(100px, size));
margin-bottom: 15px;
max-height: stretch;
position-try: flip-block;
}
```
--
GitHub Notification of comment by bfgeek
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13617#issuecomment-4025033386 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 9 March 2026 16:28:29 UTC