- From: Luke Warlow via GitHub <sysbot+gh@w3.org>
- Date: Fri, 14 Mar 2025 19:48:49 +0000
- To: public-css-archive@w3.org
lukewarlow has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-forms-1] Pseudo-class to match textual inputs ==
Currently for styling of inputs you end up having to write fairly complex selectors (that aren't always correct), or you write a blanket input style and then have to override and undo some of it for specific inputs.
E.g.
```css
input:not([type]),
input:is([type=text], [type=search], [type=email], [type=password], [type=tel], [type=url], [type=number]) {
```
This is annoying to write but also not always correct. If a browser doesn't support a specific input type (e.g. input type week is currently limited in browser support) it falls back to a textual input.
It would probably be useful to have a pseudo class that matches for textual inputs?
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11939 using your GitHub account
-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 14 March 2025 19:48:50 UTC