The :valid CSS pseudo-class represents any <input> element whose content validates correctly according to the input's type setting.
:valid { declaration block }