<?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>290915</bug_id>
          
          <creation_ts>2025-04-02 05:50:31 -0700</creation_ts>
          <short_desc>Details with block-size: 0; and block-size: auto; when :open is not rendered</short_desc>
          <delta_ts>2025-04-09 09:27:28 -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>Layout and Rendering</component>
          <version>Safari 18</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 18</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>280637</dup_id>
          
          <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>frankykubo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>ntim</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2108154</commentid>
    <comment_count>0</comment_count>
    <who name="">frankykubo</who>
    <bug_when>2025-04-02 05:50:31 -0700</bug_when>
    <thetext>Overview:
I am using details element with summary inside to render accordions. Since iOS 18.4 update, this does not work either in Chrome, or Safari in iPhone. Works okay on android, desktop devices and iPhone 18.3.x iOS devices.

Steps to Reproduce:
1. Use this HTML:

```html
&lt;details name=&quot;faq&quot;&gt;
   &lt;summary&gt;
      Summary
   &lt;/summary&gt;
   &lt;div&gt;
      DETAIL CONTENTS
   &lt;/div&gt;
&lt;/details&gt;
```

2. Use this CSS:

```css
@supports(transition-behavior: allow-discrete) {
  details::details-content {
    block-size: 0;
    transition: block-size 0.5s, content-visibility 0.5s;
    transition-behavior: allow-discrete;
  }

  details:open::details-content {
    block-size: auto;
  }
}
```

3. Try to open the details element.


Expected Results:
Details element gets [open] attribute and contents are rendered

Actual results:
Details element gets [open] attribute, contents are not rendered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2109932</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-04-09 05:51:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/148902667&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2109956</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2025-04-09 09:27:28 -0700</bug_when>
    <thetext>WebKit doesn&apos;t support `:open` currently. You can just replace `details:open::details-content` with `details[open]::details-content` and your code should work.

*** This bug has been marked as a duplicate of bug 280637 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>