Bug 232388

Summary: No tab stop by default on role="button" on <a> tags
Product: WebKit Reporter: kaylee <kayleeknowles42>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: andresg_22, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Unspecified   
OS: Unspecified   

kaylee
Reported 2021-10-27 10:38:00 PDT
In Safari, if you have the default tab stop settings (ie, you have not checked "Press tab to highlight each item on a webpage", you will not get a tab stop on an <a> tag that has a role="button". However, Voiceover correctly announces this as a button element. If you have a div with a role="button" you do get a tab stop, so it seems that whatever heuristic is being used preferences the tag over the role, even though the role override is what's used in the accessibility tree. I made a small codepen to demonstrate and test this behavior: https://codepen.io/kaylee42/pen/ZEJyQpq
Attachments
Radar WebKit Bug Importer
Comment 1 2021-10-27 10:38:10 PDT
Note You need to log in before you can comment on or make changes to this bug.