:placeholder-shown CSS pseudo-class
:placeholder-shown CSS pseudo-class
Input elements can sometimes show placeholder text as a hint to the user on what to type in. See, for example, the placeholder attribute in HTML5. The :placeholder-shown pseudo-class matches an input element that is showing such placeholder text.
Spec | http://www.w3.org/TR/selectors4/#placeholder |
---|---|
Status | W3C Working Draft |
IE | Edge | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|---|
&n
|