- From: Lea Verou via GitHub <noreply@w3.org>
- Date: Wed, 23 Jul 2025 15:07:15 +0000
- To: public-css-archive@w3.org
> > Perhaps one thing to decide is: is it desirable to be able to switch via CSS? (e.g. to handle different media types differently) If so, we can discuss what's the best way to enable that. > > Personally, I quite liked your suggestion on [whatwg/html#11452](https://github.com/whatwg/html/issues/11452) for a `type` attribute to switch between the two. For two reasons: Btw if you look at that thread @josepharhar and I are currently wondering about paving the cowpaths piggybacking on `size` as the switch with potentially a `sizes=auto` value to declare "this is a listbox, but I don't want to set a size". Then we could down the line deprecate other values, once CSS has a good story to replace this functionality (currently it doesn't). > 1. Even without CSS, I think authors should be able to switch between the native multiple-choice dropdown UI and the native in-page multi-select UI Absolutely. Multiple selections and dropdown vs listbox are separate concepts and should have never been merged like that (with no separate knob to control this variable). > 3. If it was only possible to change how the select is presented in CSS, that seems consistent with how you might otherwise change inputs in HTML. For example, the WHATWG recently agreed to add a `switch` attribute to `input type="checkbox"` so that the author can change its appearance to use a switch control. No one suggested that should be switched (pun not intended) in CSS. That's a good point. (aside: can you link to that resolution? I wasn't aware there was consensus to add `switch`, I thought it was still being debated) -- GitHub Notification of comment by LeaVerou Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12468#issuecomment-3109040991 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 23 July 2025 15:07:15 UTC