W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2017

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

From: Dave Tapuska via GitHub <sysbot+gh@w3.org>
Date: Wed, 22 Mar 2017 15:51:59 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-288444383-1490197918-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:09 UTC