This increases the css specificity selector.
Here is the relevant quote in the css specs:
Note. Repeated occurrences of the same simple selector are allowed and increase specificity.
So, in this particular case, input:focus:invalid:focus will take precedence over input:focus:invalid .
Here is a simpler example demonstrating an increase in css specificity on repeated occurrences:
CSS
span.color.color { color: green; } span.color { color: yellow; }
HTML
<span class="color">This will be green.</span>
source share