<?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>266804</bug_id>
          
          <creation_ts>2023-12-21 20:45:04 -0800</creation_ts>
          <short_desc>AX: Slotted accessible name affected by CSS flex display</short_desc>
          <delta_ts>2023-12-29 12:20:22 -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>2001547</commentid>
    <comment_count>0</comment_count>
      <attachid>469169</attachid>
    <who name="Steve Repsher">steverep+webkit</who>
    <bug_when>2023-12-21 20:45:04 -0800</bug_when>
    <thetext>Created attachment 469169
Repro with block vs flex buttons in shadow vs light DOM

For ARIA roles such as buttons with slotted labels, the accessible name is affected by CSS `display: flex`.  See attached minimal reproduction.  VoiceOver reads the buttons with `display: block` correctly, but only reads the button for `display: flex` when it is in the light DOM.  The accessible name is missing when inside a shadow root.

This is a regression in Safari 17.  It has contributed to breaking accessibility for several components in Home Assistant (https://www.home-assistant.io).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001548</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-12-21 20:45:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/120026933&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002249</commentid>
    <comment_count>2</comment_count>
    <who name="Tyler Wilcock">tyler_w</who>
    <bug_when>2023-12-29 12:20:22 -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>469169</attachid>
            <date>2023-12-21 20:45:04 -0800</date>
            <delta_ts>2023-12-21 20:45:04 -0800</delta_ts>
            <desc>Repro with block vs flex buttons in shadow vs light DOM</desc>
            <filename>voiceover-flex-in-shadow-repro.html</filename>
            <type>text/html</type>
            <size>1286</size>
            <attacher name="Steve Repsher">steverep+webkit</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KICA8aGVhZD4KICAgIDx0aXRsZT5Ib21l
PC90aXRsZT4KICAgIDxtZXRhIGNoYXJzZXQ9IlVURi04IiAvPgogICAgPG1ldGEgbmFtZT0idmll
d3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xIiAvPgog
IDwvaGVhZD4KICA8Ym9keT4KICAgIDxwPkNTUyBmbGV4IGRpc3BsYXkgYWZmZWN0cyBidXR0b24n
cyBhY2Nlc3NpYmxlIG5hbWUgaW4gc2hhZG93IERPTTo8L3A+CiAgICA8bXktc2ltcGxlPjwvbXkt
c2ltcGxlPgogICAgPHA+U2FtZSBjb2RlIGluIGxpZ2h0IERPTSB3b3Jrczo8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
YW1lPSJibG9jayI+PC9zbG90PjwvYnV0dG9uPgogICAgICAgICAgYDsKICAgICAgICB9CiAgICAg
IH0KICAgICAgY3VzdG9tRWxlbWVudHMuZGVmaW5lKCJteS1idXR0b25zIiwgTXlCdXR0b25zKTsK
ICAgIDwvc2NyaXB0PgogIDwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>