Re: [csswg-drafts] [css-forms-1] Should `appearance: base-select` work on listbox selects? (`<select size>`/`<select multiple>`) (#12468)

> separate base-listbox value so that authors can also switch between the two in CSS

I'd prefer not to implement this because we can't change the DOM in the UA shadowroot based on the computed value of appearance, so we would have to add a lot of hacks to the popover element in the UA shadowroot to make it not really a popover anymore.

> as long as base-select also applies to listboxes, authors can switch between the two already with minimal CSS

In my opinion, this is hacky and should not be encouraged. I'm also not sure how minimal it would really be, and I'm not sure if accessibility mappings would work correctly.

> size is a presentational attribute and it feels wrong to control the listbox height in HTML

I agree, but creating a new attribute got negative feedback here: https://github.com/whatwg/html/issues/8189#issuecomment-2503177401

-- 
GitHub Notification of comment by josepharhar
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12468#issuecomment-3079412845 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 16 July 2025 16:41:01 UTC