WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
237102
AX: SVG with tabindex="-1" nested inside of link label not announced by VoiceOver
https://bugs.webkit.org/show_bug.cgi?id=237102
Summary
AX: SVG with tabindex="-1" nested inside of link label not announced by Voice...
Joe Watkins
Reported
2022-02-23 12:05:56 PST
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!
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-02-23 12:06:07 PST
<
rdar://problem/89370402
>
Joe Watkins
Comment 2
2022-02-23 12:12:01 PST
Rewording expected result: 3. Expected result: Both links should announce the nested SVG's label regardless of tabindex attribute presence.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug