<?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>243887</bug_id>
          
          <creation_ts>2022-08-12 10:52:38 -0700</creation_ts>
          <short_desc>Flexbox container width being computed incorrectly</short_desc>
          <delta_ts>2022-10-04 17:40:32 -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>FIXED</resolution>
          
          <see_also>https://github.com/web-platform-tests/wpt/pull/35714</see_also>
          <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="Sammy Gill">sgill26</reporter>
          <assigned_to name="Nobody">webkit-unassigned</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>1890936</commentid>
    <comment_count>0</comment_count>
      <attachid>461564</attachid>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2022-08-12 10:52:38 -0700</bug_when>
    <thetext>Created attachment 461564
Testcase

It seems like we disagree on the Flexbox computed width in certain cases. In the example I am using, we compute a width of 180. I think this is from 100px (content) + 80 px (border and padding being added twice to the child which is another bug). Both Firefox and Chrome compute a container size of 65px (the border box size of the child). So it seems like there are 2 possible issues here:

1.) We are incorrectly computing an initial content size of 100px (Unless this is correct and both Firefox/Chrome are wrong)
2.) Incorrectly adding border+padding twice to child width</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890938</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-12 10:55:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/98577125&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892038</commentid>
    <comment_count>2</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2022-08-17 13:56:54 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/3423</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1896522</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-09-06 10:23:48 -0700</bug_when>
    <thetext>Committed 254190@main (0599c10f9004): &lt;https://commits.webkit.org/254190@main&gt;

Reviewed commits have been landed. Closing PR #3423 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1897353</commentid>
    <comment_count>4</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2022-09-09 12:43:07 -0700</bug_when>
    <thetext>*** Bug 243694 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>461564</attachid>
            <date>2022-08-12 10:52:38 -0700</date>
            <delta_ts>2022-08-12 10:52:38 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>index.html</filename>
            <type>text/html</type>
            <size>551</size>
            <attacher name="Sammy Gill">sgill26</attacher>
            
              <data encoding="base64">PHN0eWxlPgogIC5mbGV4Q29udGFpbmVyIHsKICAgIGRpc3BsYXk6IGZsZXg7CiAgICBmbGV4LWRp
cmVjdGlvbjogY29sdW1uOwogICAgZmxvYXQ6IGxlZnQ7CiAgICBoZWlnaHQ6IDFweDsKICB9CiAg
Lml0ZW0gewogICAgYmFja2dyb3VuZDogZ3JlZW47CiAgICBwYWRkaW5nLWxlZnQ6IDIwcHg7CiAg
ICBwYWRkaW5nLXJpZ2h0OiAyMHB4OwogICAgYm9yZGVyLWNvbG9yOiByZWQ7CiAgfQogIDwvc3R5
bGU+CgoKIDxkaXYgY2xhc3M9ImZsZXhDb250YWluZXIiIHN0eWxlPSJoZWlnaHQ6IGF1dG87Ij4K
ICAgIDwhLS0gVGhlIGJvcmRlci1ib3ggd2lkdGggMjVweCBpcyB0cmFuc2ZlcnJlZCB0byB0aGUg
bWFpbiBheGlzLAogICAgICAgICB5aWVsZGluZyBhIHJlc29sdmVkIGZsZXggYmFzZSBzaXplIChi
b3JkZXItYm94KSBvZiAyMDBweC4gLS0+CiAgICA8ZGl2IGNsYXNzPSJpdGVtIiBzdHlsZT0ibWlu
LWhlaWdodDoxMDA7IG1heC1oZWlnaHQ6MjAwcHg7IHdpZHRoOiAyNXB4OyBhc3BlY3QtcmF0aW86
IDEvMTsiPjxkaXY+PC9kaXY+PC9kaXY+CiAgPC9kaXY+CgoKCgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>