<?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>260074</bug_id>
          
          <creation_ts>2023-08-11 10:12:26 -0700</creation_ts>
          <short_desc>Updates special case for flex-box emulating webkit-box</short_desc>
          <delta_ts>2026-04-22 10:38:40 -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 Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Ahmad Saleem">ahmad.saleem792</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>karlcow</cc>
    
    <cc>sgill26</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>1970732</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-08-11 10:12:26 -0700</bug_when>
    <thetext>Hi Team,

Came across another potential merge:

Blink Commit: https://chromium-review.googlesource.com/c/chromium/src/+/1874250

Failing Test Case: https://wpt.fyi/results/compat/webkit-box-fieldset.html?label=experimental&amp;label=master&amp;aligned

WPT Live Link: http://wpt.live/compat/webkit-box-fieldset.html

In local build, doing following change leads to test progressing. So I think it is good win.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1970736</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-08-11 10:29:13 -0700</bug_when>
    <thetext>Expected to fail, but passed: (2)
  imported/w3c/web-platform-tests/compat/webkit-box-fieldset.html
  imported/w3c/web-platform-tests/compat/webkit-box-rtl-flex.html


Regressions: Unexpected text-only failures (1)
  imported/w3c/web-platform-tests/compat/webkit-box-vertically-centered.html [ Failure ]

____

While running it on &apos;Compat&apos; directory of WPT test cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972075</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-08-18 10:13:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/114094538&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973811</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-08-27 03:14:27 -0700</bug_when>
    <thetext>Tried this but didn&apos;t work:

if ((parent()-&gt;isDeprecatedFlexibleBox() || (parent()-&gt;isFlexibleBox() &amp;&amp; (parent()-&gt;style().display() == DisplayType::Box ||  parent()-&gt;style().display() == DisplayType::InlineBox))) &amp;&amp; (parent()-&gt;style().boxOrient() == BoxOrient::Horizontal || parent()-&gt;style().boxAlign() != BoxAlignment::Stretch))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2060050</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-09-13 10:31:28 -0700</bug_when>
    <thetext>What is happening here

Safari
FIELDSET: 966 x 10 (px)
  DIV:      0 x 10 (px)

Firefox, Chrome
FIELDSET: 966 x 10 (px)
  DIV:    966 x 10 (px)

I wonder if it&apos;s partly related to 
https://github.com/WebKit/WebKit/blob/509e7900b3d9d995f089ad54ee3e813d0f1086ef/Source/WebCore/rendering/RenderBlock.cpp#L3194

void RenderBlock::layoutExcludedChildren(bool relayoutChildren) {}
which has a lot of rules for Fieldset</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2060255</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-09-14 14:59:54 -0700</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #1)
&gt; Expected to fail, but passed: (2)
&gt;   imported/w3c/web-platform-tests/compat/webkit-box-fieldset.html
&gt;   imported/w3c/web-platform-tests/compat/webkit-box-rtl-flex.html
&gt; 
&gt; 
&gt; Regressions: Unexpected text-only failures (1)
&gt;   imported/w3c/web-platform-tests/compat/webkit-box-vertically-centered.html
&gt; [ Failure ]
&gt; 
&gt; ____
&gt; 
&gt; While running it on &apos;Compat&apos; directory of WPT test cases.

Just to flag, this is because of following:

if (parent()-&gt;isRenderFlexibleBox() &amp;&amp; (parent()-&gt;style().boxOrient() == BoxOrient::Horizontal || parent()-&gt;style().boxAlign() != BoxAlignment::Stretch))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2060259</commentid>
    <comment_count>6</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-09-14 17:11:47 -0700</bug_when>
    <thetext>yes I tried to play with it a bit yesterday without success.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2203067</commentid>
    <comment_count>7</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2026-04-22 00:06:04 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/63305</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2203219</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-22 10:38:37 -0700</bug_when>
    <thetext>Committed 311784@main (cebb536ebef4): &lt;https://commits.webkit.org/311784@main&gt;

Reviewed commits have been landed. Closing PR #63305 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>