<?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>312477</bug_id>
          
          <creation_ts>2026-04-16 08:54:17 -0700</creation_ts>
          <short_desc>Flexbox: calc(infinity) flex-grow factor fails to stretch item to 100% width.</short_desc>
          <delta_ts>2026-04-29 10:02:07 -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 26</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 26</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://github.com/web-platform-tests/wpt/pull/59547</see_also>
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nilesh Prajapati">nileshprajapati</reporter>
          <assigned_to name="Sammy Gill">sgill26</assigned_to>
          <cc>bfulgham</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>2201071</commentid>
    <comment_count>0</comment_count>
    <who name="Nilesh Prajapati">nileshprajapati</who>
    <bug_when>2026-04-16 08:54:17 -0700</bug_when>
    <thetext>Hi Webkit,

Issue:
When resizing the window to a smaller viewport, the following demo fails to fill the remaining space in Safari.

To illustrate the problem, I recommend adding a red background to the main window.

https://codepen.io/amit_sheen/pen/dPpjEOv/6896f83a17a23d0f92099c3d7ad40b83?editors=1100

Ref: https://frontendmasters.com/blog/building-a-ui-without-breakpoints/

The issue is not present in either Chrome or Firefox and works as expected. It fills the remaining space at a smaller viewport size.

Thanks,
Nilesh</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201167</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2026-04-16 12:02:04 -0700</bug_when>
    <thetext>*** Bug 312476 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201185</commentid>
    <comment_count>2</comment_count>
    <who name="Nilesh Prajapati">nileshprajapati</who>
    <bug_when>2026-04-16 12:53:47 -0700</bug_when>
    <thetext>*To illustrate the problem, I recommend adding a red background to the main element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2203711</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-04-23 08:55:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/175431146&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2203808</commentid>
    <comment_count>4</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2026-04-23 12:16:08 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/63453</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2204162</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-24 09:35:42 -0700</bug_when>
    <thetext>Committed 311956@main (32309d175884): &lt;https://commits.webkit.org/311956@main&gt;

Reviewed commits have been landed. Closing PR #63453 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2205818</commentid>
    <comment_count>6</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2026-04-29 10:02:07 -0700</bug_when>
    <thetext>Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/59547</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>