<?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>267167</bug_id>
          
          <creation_ts>2024-01-05 20:13:14 -0800</creation_ts>
          <short_desc>Remove &apos;float:none&apos; for computed value for Flex/Grid Items</short_desc>
          <delta_ts>2026-03-05 02:07:19 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=172999</see_also>
          <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="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>fred.wang</cc>
    
    <cc>karlcow</cc>
    
    <cc>ntim</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>2003320</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-01-05 20:13:14 -0800</bug_when>
    <thetext>Hi Team,

While looking into browser specific failures, I noted that we fail two tests:

https://wpt.fyi/results/css/css-display/display-with-float-dynamic.html?label=master&amp;label=experimental&amp;aligned&amp;q=safari%3Afail

https://wpt.fyi/results/css/css-display/display-with-float.html?label=master&amp;label=experimental&amp;aligned=&amp;q=safari%3Afail

&gt; display-with-float-dynamic.html
&gt; display-with-float.html

I noticed that we have computed value as &apos;None&apos;. Looking into &apos;Blink&apos; change, I noticed, we have also it in StyleAdjuster.cpp as &apos;None&apos;.

Removing the line:

https://github.com/WebKit/WebKit/blob/fd569defc022c2d1e03658764ac31816e0267ef1/Source/WebCore/style/StyleAdjuster.cpp#L490

// https://www.w3.org/TR/css-display/#transformations
        // &quot;A parent with a grid or flex display value blockifies the box’s display type.&quot;
        if (m_parentBoxStyle.isDisplayFlexibleOrGridBox()) {
            style.setFloating(Float::None);
            style.setEffectiveDisplay(equivalentBlockDisplay(style));
        }

to just:

// https://www.w3.org/TR/css-display/#transformations
        // &quot;A parent with a grid or flex display value blockifies the box’s display type.&quot;
        if (m_parentBoxStyle.isDisplayFlexibleOrGridBox()) {
            style.setEffectiveDisplay(equivalentBlockDisplay(style));
        }

___

We start progressing above two tests. I haven&apos;t run whole &apos;css&apos; (WPT suite) or other tests but just wanted to raise bug so we can track and fix it.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003326</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-01-05 20:32:47 -0800</bug_when>
    <thetext>It might progress following as well:

flex-legend-float-abspos.html 

fieldset-grid.html 	

fieldset-flexbox.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2004841</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-01-12 20:14:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/120934759&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2187246</commentid>
    <comment_count>3</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2026-03-04 22:37:42 -0800</bug_when>
    <thetext>@Ahmad: I think this is a duplicate of bug 172999 (well, at least for flex items). Indeed, removing the corresponding lines from the the style adjuster would progress some tests for the computed style, but we still need a way to blockifying flex/grid items, otherwise other tests will fail. Maybe what was done in Chromium at https://issues.chromium.org/issues/41093673 can be a source of inspiration, dunno.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2187273</commentid>
    <comment_count>4</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2026-03-04 23:31:22 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 172999 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2187313</commentid>
    <comment_count>5</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2026-03-05 02:07:19 -0800</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #1)
&gt; It might progress following as well:
&gt; 
&gt; flex-legend-float-abspos.html 
&gt; 
&gt; fieldset-grid.html 	
&gt; 
&gt; fieldset-flexbox.html

I&apos;m unsure why, these don&apos;t see to test the float computed value? (And the layout should remain the same).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>