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

> Also, would a native date picker or color picker be considered a drop-down, like `input[type=date]:has-drop-down`?

Good question. I would say no. The date widgets are not guaranteed to have a drop-down or a popup, it would be conforming to have a control with only spinners, for example. The color well is [specified](https://html.spec.whatwg.org/multipage/rendering.html#the-input-element-as-a-colour-well) to have a "color picker" that is separate from the color well, but nothing says it has to be a drop-down. Firefox on macOS opens a popup window for the color picker.

Since the need is specific to the `select` element, I think we should define it to only apply to `select`. Should the naming be different because of that?

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


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

Received on Thursday, 7 July 2022 07:21:22 UTC