🏠 New in High Baseline Support: :placeholder-shown

July 15, 2022

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