Bug 245194 - [css-flexbox] Consider container percentage based sizes when determining definite cross size
Summary: [css-flexbox] Consider container percentage based sizes when determining defi...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-09-14 14:39 PDT by Sammy Gill
Modified: 2022-09-22 14:35 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.