[csswg-drafts] [css-selectors] [proposal] New pseudo-class :modified for inputs (#3408)

zoliszabo has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-selectors] [proposal] New pseudo-class :modified for inputs ==
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?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3408 using your GitHub account

Received on Friday, 7 December 2018 22:50:27 UTC