<?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>225343</bug_id>
          
          <creation_ts>2021-05-04 00:34:31 -0700</creation_ts>
          <short_desc>[css-flexbox] Flexbox uses min-width property of table child instead of its effective size</short_desc>
          <delta_ts>2023-07-16 07:45:00 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>http://wpt.live/css/css-flexbox/table-as-item-fixed-min-width-3.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>221473</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Felipe Erias">felipeerias</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>svillar</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1756460</commentid>
    <comment_count>0</comment_count>
    <who name="Felipe Erias">felipeerias</who>
    <bug_when>2021-05-04 00:34:31 -0700</bug_when>
    <thetext>Failing test:

  imported/w3c/web-platform-tests/css/css-flexbox/table-as-item-fixed-min-width-3.html

A table inside a flex container claims to have a min-width of 50px, but actually its content will make it larger than that.
  
The flex algorithm uses that min-width when distributing the available space, which causes an error in layout when the table ends up taking up more space than expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756462</commentid>
    <comment_count>1</comment_count>
    <who name="Felipe Erias">felipeerias</who>
    <bug_when>2021-05-04 00:38:40 -0700</bug_when>
    <thetext>RenderFlexibleBox::adjustChildSizeForMinAndMax() returns the wrong width for the child table because it ends up using the min-width value directly.

Using the child&apos;s minPreferredLogicalWidth() would return the right value in this case, but I haven&apos;t yet found a way to do that without causing other tests to fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1758844</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-05-11 00:35:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/77809882&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1966966</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-07-16 07:45:00 -0700</bug_when>
    <thetext>We are passing this test now:

https://wpt.fyi/results/css/css-flexbox/table-as-item-fixed-min-width-3.html?label=experimental&amp;label=master&amp;aligned=

Marking this as &apos;RESOLVED CONFIGURATION CHANGED&apos;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>