-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define :user-valid and :user-invalid pseudo-classes #8452
Comments
Note some discussion at web-platform-tests/interop#178 (comment) |
My implementation in WebKit/WebKit#7730 is matching the User-initiated form submissions acts like a "reset" for the pseudo-class as the CSS spec defines: https://w3c.github.io/csswg-drafts/selectors/#user-pseudos From an user-POV this seems to match FF's behavior, though I haven't looked deeply into how it works. cc @emilio Can we spec it that way? |
Thanks, that helps, but I have some more questions. Should |
I use Perhaps a better a model would be to just make every form submission reset the state. (I haven't dived too deeply into what FF does) |
I have a rough vision of how to spec user-valid and invalid |
User agents are implementing
:user-valid
and:user-invalid
pseudo-classes, but it seems these are not yet defined in HTML so there's some potential for issues with them.cc @whatwg/css
The text was updated successfully, but these errors were encountered: