Baseline Widely Selectors
:placeholder-shown
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.
Baseline Status
Widely Available
Since 2020-01-15
First Core Launch
Safari 9
2015-09-30
Core-3 Stability
482d (1.3y)
Last: Firefox (2017-01-24)
BCD Keys Mapped
2
Group: Selectors
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Safari on iOS | mobile | 9 | 2015-09-16 |
| Safari | desktop | 9 | 2015-09-30 |
| Chrome | desktop | 47 | 2015-12-01 |
| Chrome Android | mobile | 47 | 2015-12-02 |
| Firefox | desktop | 51 | 2017-01-24 |
| Firefox for Android | mobile | 51 | 2017-01-24 |
| Edge | desktop | 79 | 2020-01-15 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| css.selectors.placeholder-shown | CSS | 482d (1.3y) |
| css.selectors.placeholder-shown.non_text_types | CSS | 895d (2.5y) |