<?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>249594</bug_id>
          
          <creation_ts>2022-12-19 10:41:32 -0800</creation_ts>
          <short_desc>HTML details marker does not update when CSS display: contents is applied</short_desc>
          <delta_ts>2024-11-23 11:33:33 -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>Layout and Rendering</component>
          <version>Safari 16</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 13</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>157323</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>252223</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Šime Vidas">sime.vidas</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>darin.senneff</cc>
    
    <cc>karlcow</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>1920518</commentid>
    <comment_count>0</comment_count>
    <who name="Šime Vidas">sime.vidas</who>
    <bug_when>2022-12-19 10:41:32 -0800</bug_when>
    <thetext>Steps to reproduce:

1. Open https://jsbin.com/yaxizom/edit?html,css,output
2. Click “Details”

What happened:

The triangle marker ▶︎ does not change.

What should have happened:

The marker should have turned down (▼). It does in Chrome and Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920526</commentid>
    <comment_count>1</comment_count>
    <who name="Šime Vidas">sime.vidas</who>
    <bug_when>2022-12-19 10:53:33 -0800</bug_when>
    <thetext>I’ve checked how VoiceOver is affected. The collapsed state is announced, but the expanded state isn’t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920670</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-12-19 18:08:46 -0800</bug_when>
    <thetext>In the section https://drafts.csswg.org/css-display/#unbox

&gt; Appendix B: Effects of display: contents on Unusual Elements
&gt; Some elements aren’t rendered purely by CSS box concepts; 
&gt; for example, replaced elements (such as img), many form 
&gt; controls (such as input), and SVG elements.
&gt; 
&gt; This appendix defines how they interact with display: contents.
&gt; 
&gt; HTML Elements
&gt;
&gt; … cut for brevity …
&gt; 
&gt; button
&gt; details
&gt; fieldset
&gt; These elements don’t have any special behavior; display: contents 
&gt; simply removes their principal box, and their contents render as normal.
&gt; 



https://searchfox.org/wubkat/rev/05f693e31a84e598a51d00bf3505f1e10049bbc5/Source/WebCore/html/HTMLSummaryElement.cpp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920671</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-12-19 18:08:57 -0800</bug_when>
    <thetext>&lt;rdar://problem/103539240&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920672</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-12-19 18:11:31 -0800</bug_when>
    <thetext>I wonder if it&apos;s related to 
https://searchfox.org/wubkat/rev/05f693e31a84e598a51d00bf3505f1e10049bbc5/Source/WebCore/rendering/RenderDetailsMarker.cpp#143-155</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1990872</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Senneff">darin.senneff</who>
    <bug_when>2023-11-08 09:28:45 -0800</bug_when>
    <thetext>Confirmed that this is still present in Safari 17.1 on MacOS.

Adding the CSS &quot;display: contents;&quot; on the &apos;details&apos; element causes the disclosure triangle to remain pointing sideways in both open and expanded states.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2077303</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2024-11-23 11:33:33 -0800</bug_when>
    <thetext>Fixed by bug 157323.

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

    </bug>

</bugzilla>