placeholder-shown CSS pseudo-class

Submit your test result so it can be shown on the home page

The following example highlights the street and ZIP code fields with a custom style. The placeholder text is displayed with the specified style until the field has focus, meaning that the field can be typed into. When the field has focus, it returns to the normal style of the input field and the placeholder text disappears.

Feature Supported?

Yes Partially No