<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>237102</bug_id>
          
          <creation_ts>2022-02-23 12:05:56 -0800</creation_ts>
          <short_desc>AX: SVG with tabindex=&quot;-1&quot; nested inside of link label not announced by VoiceOver</short_desc>
          <delta_ts>2022-02-23 12:12:01 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Accessibility</component>
          <version>Safari 15</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 15</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joe Watkins">joewatkinspdx</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andresg_22</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1845255</commentid>
    <comment_count>0</comment_count>
    <who name="Joe Watkins">joewatkinspdx</who>
    <bug_when>2022-02-23 12:05:56 -0800</bug_when>
    <thetext>When an SVG is nested inside of an &lt;a&gt; and this SVG owns role=&quot;img&quot;, aria-label=&quot;some label here&quot;, and tabindex=&quot;-1&quot;, it appears that the SVG is not included in calculating the accessible name for the control.  Removal of the tabindex=&quot;-1&quot; results in the SVG&apos;s label being calculated as part of the parent link&apos;s accessible name.

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

This isn&apos;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&apos;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!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1845256</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-02-23 12:06:07 -0800</bug_when>
    <thetext>&lt;rdar://problem/89370402&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1845258</commentid>
    <comment_count>2</comment_count>
    <who name="Joe Watkins">joewatkinspdx</who>
    <bug_when>2022-02-23 12:12:01 -0800</bug_when>
    <thetext>Rewording expected result:

3. Expected result: Both links should announce the nested SVG&apos;s label regardless of tabindex attribute presence.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>