<?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>264303</bug_id>
          
          <creation_ts>2023-11-06 15:57:35 -0800</creation_ts>
          <short_desc>[css-flex] Flex layout incorrectly dirties preferred width bits towards the end of layout</short_desc>
          <delta_ts>2023-12-20 10:33:58 -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://github.com/web-platform-tests/wpt/pull/43652</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=266601</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="Sammy Gill">sgill26</reporter>
          <assigned_to name="Sammy Gill">sgill26</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>qmmille</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>1990340</commentid>
    <comment_count>0</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2023-11-06 15:57:35 -0800</bug_when>
    <thetext>RenderFlexibleBox::layoutAndPlaceChildren will sometimes incorrectly dirty the preferred widths bit of flex items with a call to updateBlockChildDirtyBitsBeforeLayout. This is incorrect since this is down towards the end of layout and we never compute the preferred widths for flex items after this point. This dirtying should happen if the content of the flex item changes, since that is what the intrinsic sizes is based off of, or if there is some other related style change on the flexbox that could impact it (e.g. items with an aspect-ratio for the content based minimum size: https://drafts.csswg.org/css-flexbox-1/#content-based-minimum-size)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1990341</commentid>
    <comment_count>1</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2023-11-06 15:58:44 -0800</bug_when>
    <thetext>rdar://117181858</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1990365</commentid>
    <comment_count>2</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2023-11-06 17:10:34 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/19807</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999345</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-12-13 11:26:37 -0800</bug_when>
    <thetext>Committed 271995@main (efb0cb853cc0): &lt;https://commits.webkit.org/271995@main&gt;

Reviewed commits have been landed. Closing PR #19807 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999360</commentid>
    <comment_count>4</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2023-12-13 12:32:52 -0800</bug_when>
    <thetext>Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/43652</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001074</commentid>
    <comment_count>5</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2023-12-20 09:23:35 -0800</bug_when>
    <thetext>*** Bug 266601 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001100</commentid>
    <comment_count>6</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2023-12-20 10:33:58 -0800</bug_when>
    <thetext>For future context: The effects of this bug was first reported on https://www.amazon.com/stores/Jellycat/page/92DE52A7-85AC-40F4-A3A5-08B62869740E?ref_=ast_bln</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>