Skip to content

[selectors-4] :active and left mouse button - reality #2133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Nadya678 opened this issue Dec 24, 2017 · 2 comments
Open

[selectors-4] :active and left mouse button - reality #2133

Nadya678 opened this issue Dec 24, 2017 · 2 comments
Labels
selectors-4 Current Work

Comments

@Nadya678
Copy link

Nadya678 commented Dec 24, 2017

https://www.w3.org/TR/css3-selectors/#the-user-action-pseudo-classes-hover-act

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.

What is reality in Chromium, EGDE and IE? Only Firefox meet this requirement. I tested with <input type="button" />. I don't tested all elements. Please check middle button and right button.

@Nadya678 Nadya678 changed the title [css3-pseudos] :active and left mose mutto - reality [css3-pseudos] :active and left mouse button - reality Dec 24, 2017
@Loirooriol
Copy link
Contributor

Firefox: "left" mouse button
Chrome: "left", "right" and "middle" mouse buttons
Edge: "left", "right", "middle", "4" and "5" mouse buttons

@myakura myakura assigned myakura and unassigned myakura Dec 25, 2017
@Nadya678
Copy link
Author

Nadya678 commented Dec 26, 2017

Please note: in past only left button worked as :active. I think there shall be reported a bug due to current specification. Gecko based browsers (SeaMonkey, Firefox) works properly.

This misinterpretation in IE11, EDGE and Chrome spoils my solutions and I must add additional script for them to work properly...

Thanks for "4" and "5" button information about EDGE. I upgrade my script, I cannot test because my mouse has only 3 buttons.

I think also in "caniuse" the information about wrongly implementation of :active shall be added. I don't know how to report it to caniuse..

@fantasai fantasai changed the title [css3-pseudos] :active and left mouse button - reality [selectors-4] :active and left mouse button - reality Jan 11, 2018
@fantasai fantasai added the selectors-4 Current Work label Jan 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
selectors-4 Current Work
Projects
None yet
Development

No branches or pull requests

4 participants