Bug 294961

Summary: After click tabindex element in shadowDom, cannot navigation by Tab key
Product: WebKit Reporter: Woody Lee <woodlxf00>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: jcraig, karlcow, rniwa, tyler_w, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 18   
Hardware: Unspecified   
OS: macOS 15   
Bug Depends on:    
Bug Blocks: 148695    

Woody Lee
Reported 2025-06-25 01:11:34 PDT
DOM: ``` <my-element> <div tabindex="0"> <div id="inner">Inner content</div> </div> <my-element> ``` Demo: https://codepen.io/Woody-lxf/pen/WbvLLyo 1. Visit the demo. 2. Click the #inner div. 3. Using the keyboard Tab key to navigate. Then the focus element is always the tabindex div, and cannot navigate to others. But the Tab navigation works well after clicking on other positions.
Attachments
Woody Lee
Comment 1 2025-06-25 01:15:37 PDT
Tried to change the delegatesFocus property, but it still exists.
Radar WebKit Bug Importer
Comment 2 2025-07-02 01:12:14 PDT
Note You need to log in before you can comment on or make changes to this bug.