Bug 243887 - Flexbox container width being computed incorrectly
Summary: Flexbox container width being computed incorrectly
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
: 243694 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-08-12 10:52 PDT by Sammy Gill
Modified: 2022-10-04 17:40 PDT (History)
5 users (show)

See Also:


Attachments
Testcase (551 bytes, text/html)
2022-08-12 10:52 PDT, Sammy Gill
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sammy Gill 2022-08-12 10:52:38 PDT
Created attachment 461564 [details]
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
Comment 1 Radar WebKit Bug Importer 2022-08-12 10:55:15 PDT
<rdar://problem/98577125>
Comment 2 Sammy Gill 2022-08-17 13:56:54 PDT
Pull request: https://github.com/WebKit/WebKit/pull/3423
Comment 3 EWS 2022-09-06 10:23:48 PDT
Committed 254190@main (0599c10f9004): <https://commits.webkit.org/254190@main>

Reviewed commits have been landed. Closing PR #3423 and removing active labels.
Comment 4 Sammy Gill 2022-09-09 12:43:07 PDT
*** Bug 243694 has been marked as a duplicate of this bug. ***