Css ": active" with right click, browser implementation mismatch

I just noticed an inconsistency between the processing by the css browser: the active state of the element when it is right-clicked (pressing the context menu)

  • Firefox :: active not starting
  • Chrome :: activates instantly until mouseup appears
  • Safari 5 and IE 10 :: is activated and the element remains: active until the context menu is closed

Here is a quick jsfiddle for replicating this http://jsfiddle.net/annam/tqBqV/

div { background: red; }
div:active { background: green; }

Does anyone know what is the correct behavior? I think there is no way to standardize?

+5
source share
1 answer

3 , :active , , , :

  • :active , . , , . :active ( "" ) .

:active , ( , CSS2.1, , ).

+9

All Articles