[Webkit-unassigned] [Bug 241408] New: [selectors] Element in button click that triggers focus shouldn't cause :focus-visible

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 8 03:24:31 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=241408

            Bug ID: 241408
           Summary: [selectors] Element in button click that triggers
                    focus shouldn't cause :focus-visible
           Product: WebKit
           Version: Safari 15
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: webkit-bugs at danwolff.se

Created attachment 460088

  --> https://bugs.webkit.org/attachment.cgi?id=460088&action=review

Test cases for experimenting

Tested in Safari on iOS 15.5.

For the "Minimal test case":

Clicking the "Click me" button should not cause a focus ring on the "Target button".

---

Scenario: Clicking a button causes another button to gain focus. The first button contains an element.

Problem: The button that gains focus, also gains focus-visible.

What happens when clicking the buttons in the "Test cases for experimenting" attachment:

- [bad] The target button GAINS focus-visible when clicking: "1. Span" and "2a. Inside span".
- [good] The target button DOES NOT gain focus-visible when clicking: "2b. Outside span", "3. pointer-events:none span" and "4. Without span".

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220608/843c5439/attachment.htm>


More information about the webkit-unassigned mailing list