[Webkit-unassigned] [Bug 237102] New: AX: SVG with tabindex="-1" nested inside of link label not announced by VoiceOver

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 23 12:05:56 PST 2022


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

            Bug ID: 237102
           Summary: AX: SVG with tabindex="-1" nested inside of link label
                    not announced by VoiceOver
           Product: WebKit
           Version: Safari 15
          Hardware: iPhone / iPad
                OS: iOS 15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: joewatkinspdx at gmail.com
                CC: andresg_22 at apple.com,
                    webkit-bug-importer at group.apple.com

When an SVG is nested inside of an <a> and this SVG owns role="img", aria-label="some label here", and tabindex="-1", it appears that the SVG is not included in calculating the accessible name for the control.  Removal of the tabindex="-1" results in the SVG's label being calculated as part of the parent link's accessible name.

Attributes such as aria-hidden="true" or CSS display:none; should have this effect, but should a negative tabindex on a naturally non-focusable element? 

This isn't a common approach and one would probably not recommend a negative tabindex on and SVG anyways, but feels like a name calculation bug (or an Apple-only opinion thing?). I'm not able to reference anywhere in the Accessible Name Calculation algorithm that the SVG should be taken out. 

Tnx!

1. Visit: https://cdpn.io/pen/debug/abVKxaX
2. Using Safari (or Chrome) with VoiceOver activated, traverse the links and listen for how they are announced.
3. Expected result: The first link should announce like the second. 

Tnx!

-- 
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/20220223/3694dd24/attachment.htm>


More information about the webkit-unassigned mailing list