Re: [csswg-drafts] Styling form control pickers (#10440)

> If I'm understanding correctly (I might not be), that revises the proposed resolutions to:
> 
>     * `appearance:base` will apply to the in-page parts (only) of all form controls (including `<select>`), and, to avoid forwards-compat problems, must ship simultaneously on all form controls.

I think Google was ok with this, with the caveat that they want `appearance: base-select`, (and maybe `appearance: base`?) to opt in _both_ the button and the picker, but they wanted it to move to a separate issue.

>     * `::picker(keyword) { appearance: base }` will apply to form control pickers as an opt-in to styleable pickers of the named control type, with the control-type keyword allowing per-control-type incremental shipping of styleable pickers. To avoid forwards-compat problems, we will consider a keywordless variant only once all form controls can be opted in.

I _think_ this is fine (not ideal tho), with one caveat, which is that we should either define how this would work when the control is _not_ `appearance: base` (which feels a bit of a can of worms), or explicitly state that it doesn't work (so `::picker(keyword) { appearance: base }` only does something if you've done `foo { appearance: base }`).

>     * If `appearance: base` on all in-page controls is not ready in time for `<select>`, we may add `appearance: base-select` whose behavior is equivalent to `appearance: base`, but only applies to `<select>` and its picker (`::picker(select)`).

That means `select { appearance: base-select }` would do something different to `select { appearance: base }`, right? That seems a bit unfortunate... Would be good that, if we have the chance, we make `appearance: base` apply to the picker as well at the same time?

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


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

Received on Thursday, 22 August 2024 16:09:37 UTC