Unusual behaviour in Firefox when using ‘preventDefault()’ on ‘mousedown’ event

Firefox completely blocks css :active pseudo-class when using PreventDefault() on mousedown event, unlike other browsers.

This is undefined behaviour, and can lead to some hard to fix bugs, especially when you had no idea Firefox implemented this.

Continue reading “Unusual behaviour in Firefox when using ‘preventDefault()’ on ‘mousedown’ event”