Bug 146018

Summary: [META] min-width/height should default to auto for flexbox and grid items
Product: WebKit Reporter: Sergio Villar Senin <svillar>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: rego
Priority: P2 Keywords: BlinkMergeCandidate
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 113610, 146020, 146021    
Bug Blocks: 142329    

Description Sergio Villar Senin 2015-06-16 08:10:31 PDT
According to Flexbox[1] and Grid Layout[2] specs, the default value for the min-width/height properties for the flex/grid items should be 'auto'.

For flexbox items the default value was changed from min-content to 0 in https://bugs.webkit.org/show_bug.cgi?id=111790 and later reported as a regression https://bugs.webkit.org/show_bug.cgi?id=114566.

Since then the spec has changed and now it's clearly specified both the default value for those properties and also how to compute the minimum size for flex/grid items.

[1] http://dev.w3.org/csswg/css-flexbox/#min-size-auto
[2] http://dev.w3.org/csswg/css-grid/#min-size-auto
Comment 1 Sergio Villar Senin 2015-06-16 08:18:04 PDT
This requires intrinsic sizes support for height, min-height and max-heigt, see bug 113610.

The fix involves merging the following Blink change logs:

* for flexbox
- https://crrev.com/193665
- https://crrev.com/194062
- https://crrev.com/195930

* for grid
- https://crrev.com/194408 
- https://crrev.com/194863

* for both
https://crrev.com/194887

That's why I'm converting this into a meta-bug to land flex and grid changes independently
Comment 2 Sergio Villar Senin 2015-09-14 05:54:56 PDT
Closing as all dependent bugs were fixed.