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

So there are a few events that are generated position-less; mouseover,mousedown,mouseup,click.

Scenarios are:
HTML Element - click() call
A Link - keydown - Enter
Button - keyup - Space, keypress - Enter
SVG A LInk - keydown - Enter
Access Keys
Radio Input  - Up/Down/Left/Right
Inputs - Enter
Summary Element - Keyup - Space, Keypress - Enter
Implicitly submitting a form  - generates a click on the submit
Editable style Elements on keypress space or enter

How does Gecko know if the position of the event for these cases? screenX/Y, clientX/Y (along with offsetX/offsetY) all are 0 for these events that are generated as compat events (although layerX/Y don't seem to have these checks).


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

Received on Wednesday, 22 March 2017 15:52:07 UTC