Bug 110920

Summary: In Flexbox, allow intrinsic aspect ratios to inform the main-size calculation
Product: WebKit Reporter: Tony Chang <tony>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: m.goleb+bugzilla, svillar
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 62048    

Description Tony Chang 2013-02-26 15:54:38 PST
According to http://dev.w3.org/csswg/css3-flexbox/#algo-main-item :

If flex item has an intrinsic aspect ratio, the flex item has ‘align-self: stretch’, the flex basis and cross size are both ‘auto’ , and the flex container is single-line and has a definite cross size, the flex base size is computed from the flex container's inner cross size (clamped to the flex item’s min and max cross size) and the flex item’s intrinsic aspect ratio.

This was recently added to the spec, but I don't think we handle it properly.
Comment 1 Sergio Villar Senin 2020-11-16 02:54:49 PST
This was done some time ago. It isn't working completely ok yet (see bug 199583 or bug 209983 for example) but we're closer now.