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

Sidenote: If authors had [the ability to numerically compare attribute values](https://github.com/w3c/csswg-drafts/issues/5890), they would be able to select those elements using this snippet:

```css
select[size>1],
select[multiple] {
  /*🎉 */
}
```

This, in turn, would make a lovely [custom selector](https://drafts.csswg.org/css-extensions-1/#custom-selectors) as well:

```css
@custom-selector :--with-listbox [size>1], [multiple];

select:--with-listbox {
  /*🎉 */
}
```

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


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

Received on Monday, 12 September 2022 11:57:05 UTC