From ca0ea6bb8cfdadbaa8e8302130ce23bebb08db83 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 16 Nov 2023 00:57:21 +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: adc6a6f51dfa6facc44c1afe4bf3455c3bf32fad --- ...user-action-pseudo-classes-in-has.html.ini | 7 +- .../user-action-pseudo-classes-in-has.html | 133 +++++++++--------- 2 files changed, 68 insertions(+), 72 deletions(-) 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 index fa2c49962f564..16424da8045ac 100644 --- 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 @@ -1,7 +1,4 @@ [user-action-pseudo-classes-in-has.html] - expected: - if os == "mac": ERROR - [Invalidation with :focus, :focus-within, :focus-visible in :has()] + [CSS Selectors Invalidation: user-action pseudo classes in :has() argument] expected: - if os == "mac": TIMEOUT - FAIL + if os == "mac": 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 f36de7c76fcf3..97702e546f360 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 @@