Try typing a number out of range (less than 5 or higher than 10), to see the styling disappear.
Note: The :in-range selector is not supported in Internet Explorer.