[Webkit-unassigned] [Bug 236782] New: [macOS][selectors] :focus-visible matching on button focused via script (after clicking on a different button)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 17 07:48:34 PST 2022


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

            Bug ID: 236782
           Summary: [macOS][selectors] :focus-visible matching on button
                    focused via script (after clicking on a different
                    button)
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: BrowserCompat
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rego at igalia.com
            Blocks: 185859

Bug report from Twitter: https://twitter.com/LegendOfMI/status/1494110668424892416

Test case: https://codepen.io/Blondebeard/pen/JjOOgEE

Clicking on the first button moves the focus to the 2nd button, we shouldn't see an outline on the 2nd button (shouldn't match :focus-visible).

This is a MacOS specific issue, as it doesn't happen on WebKitGTK.

Maybe the fact that buttons are not click focusable on MacOS might be the reason why this is failing, I'd need to debug this on a Mac machine to understand what's going on.


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=185859
[Bug 185859] [selectors] Support for Focus-Indicated Pseudo-class: `:focus-visible`
-- 
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/20220217/3b1d0211/attachment.htm>


More information about the webkit-unassigned mailing list