I just noticed an inconsistency between the way browsers handle the css :active state of an element when it is right-clicked (contextmenu click)
- Firefox: :active is not triggered
- Chrome: :active is triggered momentarily, until mouseup occurs
- Safari 5 & IE 10: :active is triggered and element remains :active until the contextmenu is closed
Here's a quick jsfiddle to replicate this http://jsfiddle.net/annam/tqBqV/
div { background: red; }
div:active { background: green; }
Anyone knows which is the correct behaviour? I guess there is no way to standardize?