Reputation: 11
On focus, the text-field is already activated and has caret in it. Then is input:active relevant at all for a text-field?
Upvotes: 1
Views: 675
Reputation: 26365
:hover
is when the user's cursor is on the element. :active
is when the user's cursor is actively pressed on the the element.
On mobile this usually gets blended together.
For input elements there is also the :focus
selector, when a user's focus is on the element, i.e., editing a text field.
Upvotes: 3