<?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>299321</bug_id>
          
          <creation_ts>2025-09-22 14:29:07 -0700</creation_ts>
          <short_desc>AX: content within a `&lt;details&gt;` element with `display: contents` is not accessible when expanded</short_desc>
          <delta_ts>2025-10-27 14:15:36 -0700</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 Technology Preview</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nathan Knowler">nathan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andresg_22</cc>
    
    <cc>aroselli</cc>
    
    <cc>chriskirknielsen+wkbugs</cc>
    
    <cc>nathan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2144985</commentid>
    <comment_count>0</comment_count>
      <attachid>476830</attachid>
    <who name="Nathan Knowler">nathan</who>
    <bug_when>2025-09-22 14:29:07 -0700</bug_when>
    <thetext>Created attachment 476830
Details elements with `display: contents` set

If a `&lt;details&gt;` element has `display: contents` set on it and then it is expanded or collapsed, the content within the `&lt;details&gt;` element is not accessible via VoiceOver (tested on macOS and iOS 26).

Occasionally, either clicking directly on the content or collapsing another `&lt;details&gt;` element will cause the content to be accessible.

This does not happen in other browsers on macOS or using screen readers on other platforms (e.g. NVDA on Windows).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144987</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-09-22 14:29:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/161122150&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144992</commentid>
    <comment_count>2</comment_count>
    <who name="Nathan Knowler">nathan</who>
    <bug_when>2025-09-22 14:37:47 -0700</bug_when>
    <thetext>Forgot to mention that I did test this in the latest tech preview (228) as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144994</commentid>
    <comment_count>3</comment_count>
    <who name="Nathan Knowler">nathan</who>
    <bug_when>2025-09-22 14:43:37 -0700</bug_when>
    <thetext>I can confirm this bug in the latest build as well 300339@main. I thought that https://bugs.webkit.org/show_bug.cgi?id=298403 and it’s solution (299601@main) seemed related or at least overlapping, so I wanted to confirm it wasn’t the same issue or one that had been fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144996</commentid>
    <comment_count>4</comment_count>
      <attachid>476831</attachid>
    <who name="Nathan Knowler">nathan</who>
    <bug_when>2025-09-22 14:49:31 -0700</bug_when>
    <thetext>Created attachment 476831
Details elements (collapsed and expanded) with `display: contents`

When the `&lt;details&gt;` is initially expanded (i.e. `open` attribute is set) the content is accessible. I’ve updated the reduction to include an example of that.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>476830</attachid>
            <date>2025-09-22 14:29:07 -0700</date>
            <delta_ts>2025-09-22 14:49:31 -0700</delta_ts>
            <desc>Details elements with `display: contents` set</desc>
            <filename>details-display-contents.html</filename>
            <type>text/html</type>
            <size>357</size>
            <attacher name="Nathan Knowler">nathan</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sIGxhbmc9ZW4tY2E+CjxtZXRhIGNoYXJzZXQ9dXRmLTg+Cjxt
ZXRhIG5hbWU9dmlld3BvcnQgY29udGVudD13aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2Fs
ZT0xPgo8bWV0YSBuYW1lPWNvbG9yLXNjaGVtZSBjb250ZW50PSJkYXJrIGxpZ2h0Ij4KPHRpdGxl
PkRldGFpbHMgKyBkaXNwbGF5OiBjb250ZW50czwvdGl0bGU+CjxzdHlsZT5kZXRhaWxzIHsgZGlz
cGxheTogY29udGVudHM7IH08L3N0eWxlPgo8ZGV0YWlscz48cD5Db250ZW50PC9wPjwvZGV0YWls
cz4KPGRldGFpbHM+PHN1bW1hcnk+UHJvdmlkZWQgc3VtbWFyeTwvc3VtbWFyeT48cD5Db250ZW50
PC9wPjwvZGV0YWlscz4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>476831</attachid>
            <date>2025-09-22 14:49:31 -0700</date>
            <delta_ts>2025-09-22 14:49:31 -0700</delta_ts>
            <desc>Details elements (collapsed and expanded) with `display: contents`</desc>
            <filename>details-display-contents.html</filename>
            <type>text/html</type>
            <size>430</size>
            <attacher name="Nathan Knowler">nathan</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sIGxhbmc9ZW4tY2E+CjxtZXRhIGNoYXJzZXQ9dXRmLTg+Cjxt
ZXRhIG5hbWU9dmlld3BvcnQgY29udGVudD13aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2Fs
ZT0xPgo8bWV0YSBuYW1lPWNvbG9yLXNjaGVtZSBjb250ZW50PSJkYXJrIGxpZ2h0Ij4KPHRpdGxl
PkRldGFpbHMgKyBkaXNwbGF5OiBjb250ZW50czwvdGl0bGU+CjxzdHlsZT5kZXRhaWxzIHsgZGlz
cGxheTogY29udGVudHM7IH08L3N0eWxlPgo8ZGV0YWlscz48cD5Db250ZW50PC9wPjwvZGV0YWls
cz4KPGRldGFpbHM+PHN1bW1hcnk+UHJvdmlkZWQgc3VtbWFyeTwvc3VtbWFyeT48cD5Db250ZW50
PC9wPjwvZGV0YWlscz4KPGRldGFpbHMgb3Blbj48c3VtbWFyeT5PcGVuIGJ5IGRlZmF1bHQ8L3N1
bW1hcnk+PHA+Q29udGVudDwvcD48L2RldGFpbHM+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>