The :in-range selector selects all elements with a value that is within a specified range.

:in-range {
    css declarations;
}
input:in-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