Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zoliszabo opened this issue Dec 7, 2018 · 2 comments
Closed

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

zoliszabo opened this issue Dec 7, 2018 · 2 comments

Comments

@zoliszabo
Copy link

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?

@Loirooriol
Copy link
Contributor

Seems a dupe of #1533

@zoliszabo
Copy link
Author

@Loirooriol That's right. I'll close this issue. Thank you for pointing it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants