Bug 110920
Summary: | In Flexbox, allow intrinsic aspect ratios to inform the main-size calculation | ||
---|---|---|---|
Product: | WebKit | Reporter: | Tony Chang <tony> |
Component: | Layout and Rendering | Assignee: | 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 |
Tony Chang
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Sergio Villar Senin
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.