Bug 245194

Summary: [css-flexbox] Consider container percentage based sizes when determining definite cross size
Product: WebKit Reporter: Sammy Gill <sgill26>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/35902
https://bugs.webkit.org/show_bug.cgi?id=245540

Description Sammy Gill 2022-09-14 14:39:04 PDT
If the flex container has a percentage based cross size and we can get the available cross size from its containing block, then it is considered to have a definite cross size. This is used when computing the transferred size suggestion: 

If the item has an intrinsic aspect ratio and its computed cross size property is definite, then the transferred size suggestion is that size (clamped by its min and max cross size properties if they are definite), converted through the aspect ratio. It is otherwise undefined.
Comment 1 Sammy Gill 2022-09-14 14:39:15 PDT
rdar://99469852
Comment 2 Sammy Gill 2022-09-14 15:17:00 PDT
Pull request: https://github.com/WebKit/WebKit/pull/4362
Comment 3 EWS 2022-09-22 10:08:38 PDT
Committed 254758@main (39cc41965e9e): <https://commits.webkit.org/254758@main>

Reviewed commits have been landed. Closing PR #4362 and removing active labels.