🏠 New in Low Baseline Support: :placeholder-shown

January 15, 2020

caniuse · mdn · spec

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.

Source features