- From: Lea Verou via GitHub <sysbot+gh@w3.org>
- Date: Tue, 22 Oct 2024 02:54:12 +0000
- To: public-css-archive@w3.org
LeaVerou has just created a new issue for https://github.com/w3c/csswg-drafts: == [selectors] `:user-interacted` pseudo-class to match controls the user has interacted with == A while back, we resolved to add [`:user-valid` and `:user-invalid` pseudo-classes](https://drafts.csswg.org/selectors/#user-valid-pseudo) to represent `:valid` and `:invalid` states the user has interacted with. These depend on a _user has interacted_ state that is not exposed in any other way. I propose exposing it as a separate pseudo-class, then these become aliases of `:user-interacted:valid` / `:user-interacted:invalid`. This came up in [defining how custom element authors expose this state for their custom elements](https://github.com/whatwg/html/issues/9639#issuecomment-2427846446), but the pseudo-class seems useful in its own right, and if browsers are already tracking this state, it should be fairly low effort to implement. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11065 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 22 October 2024 02:54:13 UTC