<?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>282036</bug_id>
          
          <creation_ts>2024-10-24 03:08:05 -0700</creation_ts>
          <short_desc>[css-flexbox] incorrect layout with max-height and flex-direction column and justify-content center</short_desc>
          <delta_ts>2024-11-10 20:43:24 -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>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Przemyslaw Gorszkowski">pgorszkowski</reporter>
          <assigned_to name="Przemyslaw Gorszkowski">pgorszkowski</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>karlcow</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>2070321</commentid>
    <comment_count>0</comment_count>
    <who name="Przemyslaw Gorszkowski">pgorszkowski</who>
    <bug_when>2024-10-24 03:08:05 -0700</bug_when>
    <thetext>The original problem was reported in https://github.com/WebPlatformForEmbedded/WPEWebKit/issues/1417.

Here is simple test case: https://codepen.io/pgorszkowski/pen/PoMOpze

Problem exists on Safarii/WebKitGTK/WPEWebkit

Problem is not seen on Chrome/Firefox.

The main issue is when we have an nested flexbox container inside other flexbox container and the main/outside flexbox container has max-height set to smaller value than the height value set in inside container. It can be observed only in case of flex-direction: column/column-reverse and justify-content: center/space-around/space-evenly for nested container.

It seems that the max-height from the outside container is not taken into consideration when the final size(height) of the item is calculated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2071215</commentid>
    <comment_count>1</comment_count>
    <who name="Przemyslaw Gorszkowski">pgorszkowski</who>
    <bug_when>2024-10-29 06:24:37 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/35859</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2071828</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-10-31 03:09:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/138987797&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>