Skip to content

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

Open
@SebastianZ

Description

@SebastianZ

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions