Bug 110920 - In Flexbox, allow intrinsic aspect ratios to inform the main-size calculation
Summary: In Flexbox, allow intrinsic aspect ratios to inform the main-size calculation
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 62048
  Show dependency treegraph
 
Reported: 2013-02-26 15:54 PST by Tony Chang
Modified: 2017-07-18 08:29 PDT (History)
1 user (show)

See Also:


Attachments

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