Re: [csswg-drafts] [css-forms-1] UA styles for base appearance listbox select elements (#12510)

@josepharhar `max-lines` alone would do what we want for that simple test-case afaict. The main issue is that, if the inner `<div>`s (the `<option>`s) aren't treated atomically, it won't do the right thing for something like:

```html
<div id=container>
  <div>Title 1<br><em>subtitle</em></div>
  <div>Title 2<br><em>subtitle</em></div>
  ...
</div>
```

For that to work right, you'd need something like:

```css
#container > div {
  display: flow-root;
}
```

Plus the fix discussed in the call (treating nested block-level formatting contexts as their own line).

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12510#issuecomment-3415844367 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 14:30:01 UTC