:placeholder-shown
Widely availableThe :placeholder-shown
CSS pseudo-element selects <input>
and <textarea>
elements when no value is set and the element’s placeholder
attribute is not empty. Not to be confused with ::placeholder
, which selects the placeholder text itself.