You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The :placeholder-shown pseudo-class has pretty good support in recent browsers. It matches <input> elements which are currently showing their placeholder text. This can probably be implemented by checking that the element has a placeholder, but isn't currently focused.
This one was already on the list of candidates, I just needed a push from interested people. It does not look difficult to implement. I am going to add this too.
The
:placeholder-shown
pseudo-class has pretty good support in recent browsers. It matches<input>
elements which are currently showing their placeholder text. This can probably be implemented by checking that the element has a placeholder, but isn't currently focused.Specification: https://drafts.csswg.org/selectors-4/#placeholder
Test: https://github.com/w3c/web-platform-tests/blob/master/html/semantics/selectors/pseudo-classes/placeholder-shown-type-change.html
The text was updated successfully, but these errors were encountered: