Re: [csswg-drafts] [css-flexbox-1][css-grid-1] Note to explain flex values < 1

If that's the only item in the flexbox, then yeah, it's roughly equivalent.  But in general it's not - the `flex: 0.15` element only takes 15% of the *free space*, which might be reduced by other flex items, while a `width: 15%` element takes 15% of the *available space* inside the flexbox, regardless of what other flex items there might be.  The `flex` one also reduces its size when there are more flexible elements such that the sum of the flexes is >1; the `width` one doesn't care.

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

Received on Tuesday, 8 May 2018 01:43:05 UTC