The :out-of-range
pseudo-class applies to form fields whose user-entered value is out of range. The pseudo-class works only for those fields where the user can enter a value himself, even despite the restrictions imposed by the min
and max
attributes.
element:out-of-range {
property: value;
}