This pseudo-class is called user-interaction pseudo-class and represents elements with invalid input but only after the user interacted with the matched element, for example by focusing it or trying to submit a form containing it.
/* declarations */
In this example the input with invalid content will have a red border after it got focused.Try example in CodePen
# Browser support
# Usage statistics (Alexa Top 1,250,000 sites)
Due to an extreme price increase of our statistics provider the data collection was stopped in September 2018.