Re: [csswg-drafts] wrong initial value for `flex-grow`

Well, I find out. [Here](https://drafts.csswg.org/css-flexbox-1/#flex-grow-property)

> Authors are encouraged to control flexibility using the flex shorthand rather than with flex-grow directly, as the shorthand correctly resets any unspecified components to accommodate common uses.

So, This means that if you use `flex` and don't specify `flex-grow`'s value,the  `flex-grow` should be 1 according to [flex-property](https://drafts.csswg.org/css-flexbox-1/#flex-property).

And if you don't use `flex` and  `flex-grow` ,the value of `flex-grow` should be 0 according to [flex-grow](https://drafts.csswg.org/css-flexbox-1/#propdef-flex-grow)

Both cases don't specify the value of `flex-grow` . However , we get different default value because of the definitions above. That's really weird.

@SelenIT ,You are basically right. However, the same thing doesn't happen to `flex-shrink` which means there is a little error in the example you  proposed.

Anyway, Is that reasonable for different default value?

-- 
GitHub Notification of comment by xianshenglu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2710#issuecomment-392471194 using your GitHub account

Received on Monday, 28 May 2018 09:19:46 UTC