- From: Emilio Cobos Álvarez via GitHub <noreply@w3.org>
- Date: Fri, 17 Oct 2025 06:38:47 +0000
- To: public-css-archive@w3.org
+1 to what @bfgeek said.
The use case would be a listbox select, this comes up from https://github.com/w3c/csswg-drafts/issues/12510.
Consider:
```
<select-like-thing>
<complex-option>....</complex-option>
<complex-option>....</complex-option>
<complex-option>....</complex-option>
...
```
You want to clamp at 2 items, but you don't want to recurse into the options, nor skip counting the options. So if options are their own BFC (`display: flow-root` or so) it allows to achieve the use case trivially (`select-like-thing { max-lines: 2 }`).
--
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12962#issuecomment-3414094605 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 17 October 2025 06:38:48 UTC