Skip to content

Add CSSOM View MouseEvent tests#38912

Open
jenseng wants to merge 1 commit intoweb-platform-tests:masterfrom
jenseng:add-cssom-view-mouseevent-tests
Open

Add CSSOM View MouseEvent tests#38912
jenseng wants to merge 1 commit intoweb-platform-tests:masterfrom
jenseng:add-cssom-view-mouseevent-tests

Conversation

@jenseng
Copy link
Copy Markdown
Contributor

@jenseng jenseng commented Mar 9, 2023

Expand tests to cover dispatch scenarios for pageX/Y and offsetX/Y

https://drafts.csswg.org/cssom-view/#extensions-to-the-mouseevent-interface

  • Chrome and WebKit fail the basic pageX/pageY test since they don't consider the scroll offset in the calculation
  • WebKit fails the basic offsetX/offsetY test since it doesn't consider the scroll offset in the calculation
  • All implementations fail the scroll offset modification tests, i.e. they are allowing the event position to change during dispatch. The rationale here is that these properties are based on the position where the event occurred; the event occurred prior to user-land event handlers, so the properties should not be changing.

Expand tests to cover dispatch scenarios for `pageX/Y` and `offsetX/Y`

https://drafts.csswg.org/cssom-view/#extensions-to-the-mouseevent-interface

- Chrome and WebKit fail the basic `pageX/pageY` test since they don't consider
  the scroll offset in the calculation
- WebKit fails the basic `offsetX/offsetY` test since it doesn't consider the
  scroll offset in the calculation
- All implementations fail the scroll offset modification tests, i.e. they are
  allowing the event position to change during dispatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants