Open
Description
Back in 2014 it was suggested to add a pseudo-class matching when a user changed the value of an element. This topic was also already discussed earlier by the CSSWG.
I want to pick up that discussion again. The idea previously was to check whether the current value differs from the default value, expressed in JavaScript syntax, where el.value !== el.defaultValue
, el.checked !== el.defaultChecked
, currently selected options different from default selected options, etc., depending on the type of input.
Suggested names so far are :changed
, :edited
, :dirty
, :user-dirtied
and :user-interacted
.
This would make :user-invalid
redundant, as it could be expressed by :changed:invalid
.
Sebastian