Re: [csswg-drafts] [css-grid] Ability to have grid items cause cells to be marked as occupied for flow purposes

I believe the image min-content size in the block-axis is 50px, but §6.6 only affects the item's min-content size, not its max-content size, so its max-content size is still 200x100. So, hum, it seems there was a spec change that we haven't adjusted for yet: §12.5.1 [in the last version](https://www.w3.org/TR/2016/WD-css-grid-1-20160519/#algo-track-sizing) said "For max-content and **auto maximums**", whereas the latest spec has dropped the "auto maximums" there. 

So per the previous spec our layout is correct and the row size should be 100px since the growth limit would be set to the items max-content contribution, but per the latest spec it should be 50px since nothing in [§11.5.1](https://drafts.csswg.org/css-grid/#algo-content) changes the growth limit it's still infinite and thus it falls into the "set its growth limit to its base size" in §11.5.3 and the base size is 50px in this case.

It seems a bit odd that the items' max-content size doesn't affect an `auto` track size anymore, but I haven't tracked down why this spec change was made...

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

Received on Tuesday, 30 May 2017 13:23:52 UTC