W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

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

From: Zoli Szabó via GitHub <sysbot+gh@w3.org>
Date: Fri, 07 Dec 2018 22:50:26 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-388841748-1544223025-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:40 UTC