Re: [csswg-drafts] [selectors-4] Issue 11: Introduce pseudo-class matching when user changed the value of an input (#1533)

https://drafts.csswg.org/selectors-4/#user-pseudos says:

> The :user-invalid and the :user-valid pseudo-classes represent an element with incorrect or correct input, respectively, but only after the user has significantly interacted with it.

So `:is(:user-valid, :user-invalid)` should cover all elements (both correct and incorrect) that the user has interacted with. So it's not exactly a `!= default`, but it seems to address the relevant use-cases which are more on the line of "things the user has interacted with" rather than the specific "it's not the default value".

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


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

Received on Tuesday, 7 June 2022 10:19:08 UTC