<?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>266789</bug_id>
          
          <creation_ts>2023-12-21 13:59:46 -0800</creation_ts>
          <short_desc>AX: Accessible name in shadow slot fails in shadow DOM</short_desc>
          <delta_ts>2023-12-29 12:20:07 -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 17</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 17</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>266916</dup_id>
          <see_also>https://github.com/home-assistant/frontend/issues/18759</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Steve Repsher">steverep+webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andresg_22</cc>
    
    <cc>tyler_w</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2001442</commentid>
    <comment_count>0</comment_count>
      <attachid>469163</attachid>
    <who name="Steve Repsher">steverep+webkit</who>
    <bug_when>2023-12-21 13:59:46 -0800</bug_when>
    <thetext>Created attachment 469163
Button with component label in and out of shadow

An accessible name slotted into a child component of a simple button (or any other ARIA role) fails to be read by VoiceOver.  This only occurs when the role is also in a shadow root, i.e. the same code works in the light DOM.  Please see attached very minimal reproduction.

This is a major regression in Safari 17 as it can break labels for even very simple components.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001443</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-12-21 13:59:54 -0800</bug_when>
    <thetext>&lt;rdar://problem/120012037&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002247</commentid>
    <comment_count>2</comment_count>
    <who name="Tyler Wilcock">tyler_w</who>
    <bug_when>2023-12-29 12:20:07 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 266916 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>469163</attachid>
            <date>2023-12-21 13:59:46 -0800</date>
            <delta_ts>2023-12-21 13:59:46 -0800</delta_ts>
            <desc>Button with component label in and out of shadow</desc>
            <filename>voiceover-slotted-label-in-shadow.html</filename>
            <type>text/html</type>
            <size>969</size>
            <attacher name="Steve Repsher">steverep+webkit</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KICA8aGVhZD4KICAgIDx0aXRsZT5Ib21l
PC90aXRsZT4KICAgIDxtZXRhIGNoYXJzZXQ9IlVURi04IiAvPgogICAgPG1ldGEgbmFtZT0idmll
d3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xIiAvPgog
IDwvaGVhZD4KICA8Ym9keT4KICAgIDxwPkJ1dHRvbiB3aXRoIHNpbXBsZSBjb21wb25lbnQgbGFi
ZWwgZG9lcyBub3Qgd29yazo8L3A+CiAgICA8bXktc2ltcGxlPjwvbXktc2ltcGxlPgogICAgPHA+
U2FtZSBjb2RlIGluIGxpZ2h0IERPTSB3b3Jrczo8L3A+CiAgICA8YnV0dG9uPjxteS1zcGFuPnRl
c3Q8L215LXNwYW4+PC9idXR0b24+CiAgICA8c2NyaXB0PgogICAgICBjbGFzcyBNeVNpbXBsZSBl
eHRlbmRzIEhUTUxFbGVtZW50IHsKICAgICAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICAgIHN1
cGVyKCk7CiAgICAgICAgICBjb25zdCByb290ID0gdGhpcy5hdHRhY2hTaGFkb3coeyBtb2RlOiAi
b3BlbiIgfSk7CiAgICAgICAgICByb290LmlubmVySFRNTCA9IGAgICAgICA8YnV0dG9uPjxteS1z
cGFuPnRlc3Q8L215LXNwYW4+PC9idXR0b24+YDsKICAgICAgICB9CiAgICAgIH0KICAgICAgY3Vz
dG9tRWxlbWVudHMuZGVmaW5lKCJteS1zaW1wbGUiLCBNeVNpbXBsZSk7CiAgICAgIGNsYXNzIE15
U3BhbiBleHRlbmRzIEhUTUxFbGVtZW50IHsKICAgICAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAg
ICAgIHN1cGVyKCk7CiAgICAgICAgICBjb25zdCByb290ID0gdGhpcy5hdHRhY2hTaGFkb3coeyBt
b2RlOiAib3BlbiIgfSk7CiAgICAgICAgICByb290LmlubmVySFRNTCA9IGA8c3Bhbj48c2xvdD48
L3Nsb3Q+PC9zcGFuPmA7CiAgICAgICAgfQogICAgICB9CiAgICAgIGN1c3RvbUVsZW1lbnRzLmRl
ZmluZSgibXktc3BhbiIsIE15U3Bhbik7CiAgICA8L3NjcmlwdD4KICA8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>