[Webkit-unassigned] [Bug 260480] Custom element with delegatesFocus does not focus if inner element is not first child

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 28 15:27:55 PDT 2024


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

Ryosuke Niwa <rniwa at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Ryosuke Niwa <rniwa at webkit.org> ---
Oh, the issue is simply that x-button becomes width 0px because it's a display: inline. If you set display: block on x-button or replace div with span, the dotted red line renders correctly.

Note that buttons are not focusable by mouse clicks on Apple platforms by default. If you want to make a button focusable, set tabindex=0 on button elements.

As such, this is behaving correctly.

-- 
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/20240328/b52fc799/attachment.htm>


More information about the webkit-unassigned mailing list