:valid

The :valid pseudo-class applies to form fields whose content is validated by the browser against the specified type.

Syntax



element:valid {
  property: value;
}