From a90a5cba08fdf6c0ceb95101c275108a152a3aed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:35:37 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- .../tests/css/selectors/focus-visible-028.html | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 testing/web-platform/tests/css/selectors/focus-visible-028.html (limited to 'testing/web-platform/tests/css/selectors/focus-visible-028.html') diff --git a/testing/web-platform/tests/css/selectors/focus-visible-028.html b/testing/web-platform/tests/css/selectors/focus-visible-028.html new file mode 100644 index 0000000000..a8b704838b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/focus-visible-028.html @@ -0,0 +1,84 @@ + + + + + CSS Test (Selectors): Programmatic focus causes :focus-visible to match after keyboard usage when preventDefault() is used + + + + + + + + + + This test checks that programmatically focusing an element after a click and using keyboard afterwards triggers :focus-visible matching. +
    +
  1. If the user-agent does not claim to support the :focus-visible pseudo-class then SKIP this test.
  2. +
  3. Click the button below that says "Click me".
  4. +
  5. Once focused on the button that says "I will be focused programmatically", use "Left" or "Right" arrow keys to navigate through the button group
  6. +
  7. If any button within the group has a blue outline after using either arrow key, then the test result is SUCCESS. If the element has a green background after using either arrow key, then the test result is FAILURE.
  8. +
+
+ +
+ + + +
+ + + \ No newline at end of file -- cgit v1.2.3