[Webkit-unassigned] [Bug 236331] New: :focus-visible with click on radio/checkbox labels is broken

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 8 14:45:12 PST 2022


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

            Bug ID: 236331
           Summary: :focus-visible with click on radio/checkbox labels is
                    broken
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: firefoxic.dev at gmail.com

Clicking on the radio/checkbox label causes the input to be focused as if it were focused with the keyboard instead of the mouse. Only clicking on the input itself works correctly according to the specification (https://drafts.csswg.org/selectors/#the-focus-visible-pseudo):
> If the user interacts with the page via a pointing device (mouse, touchscreen, etc.) and the focused element does not support keyboard input, don’t indicate focus.

Demo for testing: https://codepen.io/firefoxic/pen/VwrpmZP
Checked in Epiphany Technology Preview (42.alpha / WebKitGTK 2.35.2).
It works correctly in Chrome and Firefox.

-- 
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/20220208/677dbeb2/attachment-0001.htm>


More information about the webkit-unassigned mailing list