Re: [csswg-drafts] [selectors] Add pseudo-classes for `<select>` being a drop-down box vs a list box (#7422)

Based on the fact we now have `::picker(select)` which exists for dropdown select but not for in-page select. Could we do

`select:has-picker(select)` as the new selector? Question would be does this match in non-base appearance mode?

If it does match then `select:not(:has-picker(select))` works for listbox. If it doesn't work then that's trickier. You'd have to do listbox styles and then potentially undo them?

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


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

Received on Thursday, 10 April 2025 18:47:31 UTC