Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that pointerUp Action is Being Issued on Element Being Tested #43214

Merged
merged 4 commits into from
Nov 30, 2023

Conversation

dshin-moz
Copy link
Contributor

There does not seem to be any guarantee that the pointer will move between actions.

Fixes web-platform-tests/interop#606 - verified on local Chromium build.

There does not seem to be any guarantee that the pointer will move between actions.
@foolip
Copy link
Member

foolip commented Nov 17, 2023

@dshin-moz it looks like this breaks the test in Firefox instead:
https://wpt.fyi/results/css/selectors/invalidation/user-action-pseudo-classes-in-has.html?label=pr_head&max-count=1&pr=43214

Did you intend for that to happen?

@dshin-moz
Copy link
Contributor Author

Hm.. That's unfortunate - Looking at the logs, the failures happen before the changed line. Checking locally with --verify-repeat-restart=500 and it happens before this change as well, it's just that the failure rate is 3/500 :/

* `pointerMove` origins set on elements instead of viewport + clientRect location
* Specifically wait on promise fulfilled microtask being queued after relevant events are emitted 
* Break down the tests so that one test don't rely on the pointer hovering over where the previous test put it
No need to depend on event - Dispatched actions are [guaranteed](https://www.w3.org/TR/webdriver2/#dfn-dispatch-actions-inner) to resolve after DOM events generated by actions are processed.
Keep the test that invalidates from `:has(:hover:active)` -> `:has(:hover)`.
@foolip
Copy link
Member

foolip commented Nov 30, 2023

I'm going to admin merge to override the Firefox stability failure. @dshin-moz can you file a Gecko issue for that if it's something you think warrants further investigation?

@foolip foolip merged commit fa20c29 into web-platform-tests:master Nov 30, 2023
17 of 19 checks passed
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.

Retroactive review of user-action-pseudo-classes-in-has.html changes/regressions
4 participants