Web features explorer

:placeholder-shown

Widely available
Tags: css Groups: CSS > Selectors

The :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. To learn more, see :placeholder-shown at MDN.

Compatibility (view on caniuse.com)