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

@emilio I wasn't following along very well with the discussion about max-lines, could you share what properties would get the desired behavior?

@fantasai what is missing from max-lines behavior to achieve this?

I tried out some of the properties with the experimental implementation in chromium, and the container was sized correcly but when I scroll down to see more content, the subsequent elements were not rendered as if they were visibility: hidden:
```html
<div id=container>
  <div>one</div>
  <div>two</div>
  <div>three</div>
  <div>four</div>
  <div>five</div>
</div>

<style>
#container {
  max-lines: 3;
  block-ellipsis: no-ellipsis;
  continue: collapse;
  overflow: auto;
}

#container > div {
  padding: 2px;
  border: 2px solid black;
}
</style>
```

@dbaron do you have any opinions on using max-lines for this?

-- 
GitHub Notification of comment by josepharhar
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12510#issuecomment-3415783782 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:12:21 UTC