The :out-of-range selector selects all elements with a value that is outside a specified range.

:out-of-range {
    css declarations;
}
input:out-of-range {
   color: #3366ff;
   background: #ffff99;
}

Click the button below to experiment with this selector.

Give it a Try!

28.0Firefox NoExplorer 10.0Chrome 5.2Safari 11.0Opera