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

I probably won't be at the meeting, but here are my thoughts:

My main gripe is this: `block-size: calc(max(24px, 1lh) * attr(size type(<integer>), 4));`

I think defaulting to `4` is a bad idea. By default, listboxes should get their sizes from its contents (e.g. the height of the options), pretty much like how `<div>` grows as you add content. Listboxes should only get a fixed height if the `size` attribute is specified.

`calc(max(24px, 1lh) * attr(size type(<integer>)` should maybe be defined as a presentational hint from HTML.

In general, the spirit of `appearance: base` is that form controls should try to behave as plain `<div>` elements to the extent reasonable,

cc @lukewarlow @fantasai @annevk 

-- 
GitHub Notification of comment by nt1m
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12510#issuecomment-3409244102 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 05:35:10 UTC