Skip to content

[css-selectors] [proposal] New pseudo-class :modified for inputs #3408

Closed
@zoliszabo

Description

@zoliszabo

Like the title of this issue says, I want to propose a new pseudo-class called :modified, which would apply to inputs (e.g. input[type=text], select, textarea) whose value was modified compared to their initial value (on page load or the moment of their addition to the DOM).

I think it would fit this category:
https://www.w3.org/TR/selectors-4/#input-value-states

Example:

input {
    font-weight:normal;
}
input:modified {
    font-weight:bold;
}

The above would highlight modified inputs with bold font.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions