- From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
- Date: Wed, 23 Nov 2016 20:00:49 +0000
- To: public-css-archive@w3.org
@mrego , I think you're conflating two separate concepts - clamping and stretching. The first one is the clamping of the 'automatic minimum size' to the grid area size, as specified in: https://www.w3.org/TR/css-grid-1/#min-size-auto > ... its automatic minimum size in that dimension is further clamped > to less than or equal to the size necessary to fit its margin box > within the resulting grid area (flooring at zero). This applies universally, not just when stretching the items. We have implemented this in Firefox and I think it works well. (I think this is just a bug in Chrome that you should fix: https://bugs.chromium.org/p/chromium/issues/detail?id=666940 ) The second issue is about whether `stretch`/`normal` items should shrink below their min-content size _in general_ if they don't fit within their grid area. I believe the CSS Align spec says that they shouldn't: https://drafts.csswg.org/css-align-3/#valdef-justify-self-stretch > ... make its outer size as close to filling the alignment container > as possible while still respecting the constraints imposed by > min-height/min-width/max-height/max-width. (of course, the grid area clamping rule trumps this when it applies) I believe the "Implied Minimum Size" in Grid is a "constraint imposed by min-width/height", it just so happens that Grid items have a min-size for `min-width/height:auto`. So, I believe the rendering in Firefox for these examples are correct per the CSS Grid and Alignment specs. Regarding the clamping rule in CSS Grid: I am strongly opposed to any normative change to Grid Level 1 at this point. The Grid spec is in CR and we have already sent our intent-to-ship. Also, this rule makes sense and works well IMHO. Regarding the definition of `stretch` in CSS Align: I'm willing to discuss tweaking that if you want, i.e. amending that spec to say that the min-content size should be ignored when stretching (shrinking), or something. We should check carefully if that works for Block/Table/Multicol too before making changes though. (I don't think it affects Flexbox per my last comment.) CC @jetvillegas -- GitHub Notification of comment by MatsPalmgren Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/283#issuecomment-262616892 using your GitHub account
Received on Wednesday, 23 November 2016 20:00:55 UTC