<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>146018</bug_id>
          
          <creation_ts>2015-06-16 08:10:31 -0700</creation_ts>
          <short_desc>[META] min-width/height should default to auto for flexbox and grid items</short_desc>
          <delta_ts>2015-09-14 05:54:56 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BlinkMergeCandidate</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>113610</dependson>
    
    <dependson>146020</dependson>
    
    <dependson>146021</dependson>
          <blocked>142329</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergio Villar Senin">svillar</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>rego</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1102232</commentid>
    <comment_count>0</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2015-06-16 08:10:31 -0700</bug_when>
    <thetext>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 &apos;auto&apos;.

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&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1102233</commentid>
    <comment_count>1</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2015-06-16 08:18:04 -0700</bug_when>
    <thetext>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&apos;s why I&apos;m converting this into a meta-bug to land flex and grid changes independently</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1125585</commentid>
    <comment_count>2</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2015-09-14 05:54:56 -0700</bug_when>
    <thetext>Closing as all dependent bugs were fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>