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

Looks like some browsers (webkit/blink ?) treat target.click() somehow as "simulated" and offsetX/Y is always 0. But then var e = new MouseEvent("click"); target.dispatchEvent(); isn't simulated and offsetX/Y isn't 0. It is hard to understand how click() is more simulated than create/dispatchEvent

That all feels very much ad-hoc. @dtapuska do you know what is the story here?

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

Received on Wednesday, 22 March 2017 14:23:32 UTC