Raphael elements event handlers are executed only when the element is filled.
Click event handlers are not executed when the element has no fill. Mouseover events behave differently, (both mouseover and mouseout are triggered.) for non filled elements.
My code:http://jsfiddle.net/U5wda/1/
Why is this so ?
You might want to check out this article on pointer-events. As you can see in this fiddle, if you set pointer-events to ‘fill’, I think this works the way you want. Keep in mind, though, that this will probably not work in IE, since Raphael does not use SVG in IE.
Basically,
pointer-events: fillcauses the element to act like it is filled for mouse events.