From 73c51d008e2eac1fc23e1be1e679cb695c0e623c Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 16 Nov 2023 00:35:15 +0000 Subject: [PATCH] Bug 1759031: Let `user-action-pseudo-classes-in-has.html` rely on actions being completed. r=emilio Previously, the test relied upon event listener to listen to related events: e.g. `mousedown` event on `Actions().pointerDown()`. However, as comments in https://github.com/whatwg/html/issues/7578 indicate when `:active` matches does not seem to be interoperable across browsers with different inputs. Instead rely on the action sequence being completed, as done with a simliar test, `html/semantics/selectors/pseudo-classes/active-disabled.html`. Differential Revision: https://phabricator.services.mozilla.com/D193463 UltraBlame original commit: ab075d8118aecde5cf88872225b85effcfffbacb --- ...user-action-pseudo-classes-in-has.html.ini | 7 - .../user-action-pseudo-classes-in-has.html | 133 +++++++++--------- 2 files changed, 66 insertions(+), 74 deletions(-) delete mode 100644 testing/web-platform/meta/css/selectors/invalidation/user-action-pseudo-classes-in-has.html.ini diff --git a/testing/web-platform/meta/css/selectors/invalidation/user-action-pseudo-classes-in-has.html.ini b/testing/web-platform/meta/css/selectors/invalidation/user-action-pseudo-classes-in-has.html.ini deleted file mode 100644 index fa2c49962f56..000000000000 --- a/testing/web-platform/meta/css/selectors/invalidation/user-action-pseudo-classes-in-has.html.ini +++ /dev/null @@ -1,7 +0,0 @@ -[user-action-pseudo-classes-in-has.html] - expected: - if os == "mac": ERROR - [Invalidation with :focus, :focus-within, :focus-visible in :has()] - expected: - if os == "mac": TIMEOUT - FAIL diff --git a/testing/web-platform/tests/css/selectors/invalidation/user-action-pseudo-classes-in-has.html b/testing/web-platform/tests/css/selectors/invalidation/user-action-pseudo-classes-in-has.html index f36de7c76fcf..97702e546f36 100644 --- a/testing/web-platform/tests/css/selectors/invalidation/user-action-pseudo-classes-in-has.html +++ b/testing/web-platform/tests/css/selectors/invalidation/user-action-pseudo-classes-in-has.html @@ -37,81 +37,80 @@