Closed Bug 1530202 Opened 6 years ago Closed 6 years ago

:active not applied after right mouse button press

Categories

(Core :: CSS Parsing and Computation, defect)

65 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

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:

  1. Open https://jsfiddle.net/Comandeer/c61g4th9/
  2. 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.

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.

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core

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.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.