Re: [csswg-drafts] [cssom-view] It is unclear when offsetX/Y are calculated

Wait, isn't the event bubbling path precomputed? It seems to be the case for elements that are not in a shadow root, if you move them during the event bubbling you do not change the elements that are being bubbled to. 

https://jsfiddle.net/m0gdmuxq/

Edge does not support this but I would assume the same applies to Shadow DOM: if you move the shadow parent during its internal event phase you do not change the Light Tree node that will become the target. In which case you can still compute the values during hit testing, you just need to store them for the array of targets.



-- 
GitHub Notification of comment by FremyCompany
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1070#issuecomment-284816468 using your GitHub account

Received on Tuesday, 7 March 2017 18:43:06 UTC