<?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>230408</bug_id>
          
          <creation_ts>2021-09-17 08:54:50 -0700</creation_ts>
          <short_desc>AX: iOS VoiceOver doesn&apos;t correctly announce expanded state of details element if summary has display: inline-block</short_desc>
          <delta_ts>2023-10-25 15:52:10 -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 14</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 14</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>
          
          <blocked>252223</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Oliver Byford">oliver.byford</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andresg_22</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>webkit.org</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1794453</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Byford">oliver.byford</who>
    <bug_when>2021-09-17 08:54:50 -0700</bug_when>
    <thetext>Given a details element where the summary is set to `display: inline-block`:

```
&lt;details&gt;
  &lt;summary style=&quot;display: inline-block;&quot;&gt;Summary&lt;/summary&gt;
  &lt;p&gt;Content&lt;/p&gt;
&lt;/details&gt;
```

1. Activate VoiceOver on iOS
2. Swipe to &apos;Summary&apos;
3. Double tap to expand the details element
4. Swipe forwards to the expanded content
5. Swipe back to &apos;Summary&apos;

Expected result:
In step 3, after expanding the element , VO should announce &apos;Summary, expanded&apos;
In step 5, when swiping back to the summary, VO should announce &apos;Summary, expanded&apos;

Actual result:
In step 3, after expanding the element , VO announces &apos;Summary, collapsed&apos;
In step 5, when swiping back to the summary, VO announces &apos;Summary&apos;

This issue does not occur if the summary element is set to `display: inline-block` or the user-agent default `display: list-item`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1794454</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-09-17 08:55:03 -0700</bug_when>
    <thetext>&lt;rdar://problem/83242798&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1794458</commentid>
    <comment_count>2</comment_count>
      <attachid>438478</attachid>
    <who name="Oliver Byford">oliver.byford</who>
    <bug_when>2021-09-17 08:58:46 -0700</bug_when>
    <thetext>Created attachment 438478
Test case, with alternative versions for comparison

Adding an example test case, with versions using `display: block` and the user-agent default `display` for comparison.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1987594</commentid>
    <comment_count>3</comment_count>
    <who name="Curtis Wilcox">webkit.org</who>
    <bug_when>2023-10-25 15:52:10 -0700</bug_when>
    <thetext>Using iOS 17.1 with the attached test case, after double tapping the summary with inline-block, VoiceOver (VO) repeats the summary&apos;s name but doesn&apos;t announce the state (&quot;expanded&quot;). After swiping forward and then back, VO again announces only the name but not the state.

After double-tapping the summary with inline-block again, VO does announce both the name and the collapsed state and does so again if I swipe forward and then back.

VO always announces the name and state for the default `display` and `display: block` versions (before iOS 17.1, VO wasn&apos;t announcing *any* states for details/summary elements).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>438478</attachid>
            <date>2021-09-17 08:58:46 -0700</date>
            <delta_ts>2021-09-17 08:58:46 -0700</delta_ts>
            <desc>Test case, with alternative versions for comparison</desc>
            <filename>index.html</filename>
            <type>text/html</type>
            <size>715</size>
            <attacher name="Oliver Byford">oliver.byford</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIiA+CjxoZWFkPgogIDxtZXRhIGNoYXJzZXQ9
IlVURi04Ij4KICA8dGl0bGU+MjMwNDA4OiBpT1MgVm9pY2VPdmVyIGRvZXNuJ3QgY29ycmVjdGx5
IGFubm91bmNlIGV4cGFuZGVkIHN0YXRlIG9mIGRldGFpbHMgZWxlbWVudCBpZiBzdW1tYXJ5IGhh
cyBkaXNwbGF5OiBpbmxpbmUtYmxvY2s8L3RpdGxlPgogIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBj
b250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsIGluaXRpYWwtc2NhbGU9MSI+Cgo8L2hlYWQ+Cjxi
b2R5Pgo8IS0tIHBhcnRpYWw6aW5kZXgucGFydGlhbC5odG1sIC0tPgo8ZGV0YWlscz4KICA8c3Vt
bWFyeSBzdHlsZT0iZGlzcGxheTogaW5saW5lLWJsb2NrOyI+c3VtbWFyeSB3aXRoIGRpc3BsYXk6
IGlubGluZS1ibG9jazwvc3VtbWFyeT4KICA8cD5IZWxsbyE8L3A+CjwvZGV0YWlscz4KCjxocj4K
CjxkZXRhaWxzPgogIDxzdW1tYXJ5PnN1bW1hcnkgd2l0aCBkaXNwbGF5OiBsaXN0LWl0ZW0gKHVz
ZXIgYWdlbnQgZGVmYXVsdCk8L3N1bW1hcnk+CiAgPHA+SGVsbG8hPC9wPgo8L2RldGFpbHM+Cgo8
ZGV0YWlscz4KICA8c3VtbWFyeSBzdHlsZT0iZGlzcGxheTogYmxvY2s7Ij5zdW1tYXJ5IHdpdGgg
ZGlzcGxheTogYmxvY2s8L3N1bW1hcnk+CiAgPHA+SGVsbG8hPC9wPgo8L2RldGFpbHM+CjwhLS0g
cGFydGlhbCAtLT4KICAKPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>