Re: [csswg-drafts] [css-selectors] Selectors for “text-ish” and “button-ish” inputs

Instead of adding gallizions of new pseudo-classes, also consider extending the syntax of attribute selectors, which can have benefits outside of HTML. For example:
```css
input[type in {text, search, tel, url, email, password,
               date, month, week, time, number, color}] {}
input:not([type in {button, submit, reset}]) {}
```

Still long, but looks much better. Basically, `{}` could be used after `in` to represent a set of values (identifiers or strings). And maybe `$in`, `^in`, `|in`, `~in`, etc. could work too.


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

Received on Saturday, 10 February 2018 20:23:06 UTC