<?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>221481</bug_id>
          
          <creation_ts>2021-02-05 09:32:31 -0800</creation_ts>
          <short_desc>[Interop 2021][css-flexbox] Ignore specified block sizes when computing flex items&apos; intrinsic block sizes</short_desc>
          <delta_ts>2022-05-31 10:45:26 -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>NEW</bug_status>
          <resolution></resolution>
          
          
          <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>
          
          <blocked>136754</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergio Villar Senin">svillar</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</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>1726120</commentid>
    <comment_count>0</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2021-02-05 09:32:31 -0800</bug_when>
    <thetext>Newly imported WPT tests are failing:

imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-height-auto-002a.html
imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-height-auto-002c.html
imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-002a.html
imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-002c.html
imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-026.html
imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-029.html
imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-width-flex-items-015.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1728085</commentid>
    <comment_count>1</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2021-02-11 07:54:36 -0800</bug_when>
    <thetext>(In reply to Sergio Villar Senin from comment #0)
&gt; Newly imported WPT tests are failing:
&gt; 
&gt; imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-height-auto-002a.
&gt; html
&gt; imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-height-auto-002c.
&gt; html
&gt; imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-002a.
&gt; html
&gt; imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-002c.
&gt; html

These will be fixed as part of bug 221110</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1728602</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-02-12 09:33:12 -0800</bug_when>
    <thetext>&lt;rdar://problem/74279472&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1734414</commentid>
    <comment_count>3</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2021-03-01 07:37:19 -0800</bug_when>
    <thetext>&gt; imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-026.html
&gt; imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-029.html
&gt; imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-width-flex-items-015.html

All these 3 fail for the very same reason. Let&apos;s suppose the following scenario:

    &lt;div style=&quot;display: flex; flex-direction: column&quot;&gt;
      &lt;div style=&quot;flex-basis: 100px; height: 200px&quot;&gt;
        &lt;div style=&quot;height: 100%&quot;&gt;

When computing the flex item intrinsic block size we let the inner div&apos;s height resolve against the flex item&apos;s 200px, giving the flex item an automatic minimum size of 200px, even though the min-content size is supposed to be calculated with the item having an &apos;auto&apos; size. We should ignore the item&apos;s 200px height instead.

Blink fixed it in NG in https://chromium-review.googlesource.com/c/chromium/src/+/2640774</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873045</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-05-31 10:44:46 -0700</bug_when>
    <thetext>Also these:

imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-width-flex-items-013.html
imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-025.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>