- From: Joey Arhar via GitHub <noreply@w3.org>
- Date: Thu, 16 Oct 2025 14:57:32 +0000
- To: public-css-archive@w3.org
> Listboxes should only get a fixed height if the size attribute is specified.
Right now, this is only possible with the multiple attribute since the only way to get a listbox with a single-select is to use the size attribute. If in the future we added a new value for the size attribute or some other way of opting into listbox rendering, then we could address this, and/or we could make it so multiple with no size attribute is infinitely tall.
How about this?
```css
select[size] {
block-size: calc(max(24px, 1lh) * attr(size type(<integer>)));
}
```
--
GitHub Notification of comment by josepharhar
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12510#issuecomment-3411329283 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 16 October 2025 14:57:33 UTC