:active not applied after right mouse button press
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
People
(Reporter: vepomoc, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36
Steps to reproduce:
- Open https://jsfiddle.net/Comandeer/c61g4th9/
- Right click on button.
Actual results:
Nothing happens; the styles of button does not change.
Expected results:
:active pseudoclass should be applied to the button. Chrome, Safari, Edge and IE all apply :active pseudoclass in such situation.
Comment 1•6 years ago
|
||
I think this is invalid.
See https://drafts.csswg.org/selectors-4/#the-active-pseudo
$ 9.2. The Activation Pseudo-class: :active
The :active pseudo-class applies while an element is being activated by the user. For example, between the times the user presses the mouse button and releases it. On systems with more than one mouse button, :active applies only to the primary or primary activation button (typically the "left" mouse button), and any aliases thereof.
Comment 2•6 years ago
|
||
Yes, I'm going to say that not applying :active when the right mouse button is down is the right behavior. It does seem odd and against the spec to do so. I filed https://bugs.chromium.org/p/chromium/issues/detail?id=939673.
Description
•