[Webkit-unassigned] [Bug 258682] New: Broken autofocus with popover custom element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 29 09:49:37 PDT 2023


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

            Bug ID: 258682
           Summary: Broken autofocus with popover custom element
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jeroen.zwartepoorte at gmail.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

https://codepen.io/jpzwarte/pen/abQJgeo

The above codepen has 4 examples of popover usage:
1. <div popover> with <button autofocus> inside it
2. <dialog popover> with <button autofocus> inside it
3. <x-popover> custom element with delegatesFocus: true and <button autofocus> in the shadow root
4. <x-popover> custom element with delegatesFocus: true and <button autofocus> slotted

1, 2 and 4 work fine in STP 173 (4 is broken in Chrome 114 and Chrome Dev 116)

3 is broken in STP 173 (works fine in Chrome).

I expect the <button> in <x-popover> to have focus when the popover is displayed. It hasn't. 
It is unclear what does have focus though. The original <button popovertarget> button is not it.

-- 
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/20230629/46a76359/attachment.htm>


More information about the webkit-unassigned mailing list