This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Shadow DOM spec 5.5 (https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#event-dispatch) says: 'At the time of event dispatch', .. It sounds a little ambiguous. My understanding is 'before starting capturing phase'. I mean that all of target, relatedTarget, and MouseEvent offsetX/Y should be pre-calculated in every nodes in the propagation path before starting capturing phase so that the result of calling event listeners does not affect these values. It might be better to clarify when we should calculate these values.
This is an implementation matter, but I'd like to note that pre-calculating MouseEvent offsetX and offsetY in every nodes might needs some cost since offsetX or offsetY seems lazy evaluated in current WebKit's implementation.
*** This bug has been marked as a duplicate of bug 20604 ***