Re: [csswg-drafts] [css-grid] Implied Minimum Size of Grid Items

I... am having a hard time following that thread. There seems to be 
vast amounts of confusion over z-index, some additional arguments over
 TR vs ED, and then some discussion about `stretch` with the key text

> Ah, yes, indeed.  'stretch' will not shrink it below its 'auto' 
width.
>The 10px column merely provides the containing block width, and 
layout then ends up making it min-content.
> (That is, min-content doesn't come automatically; it's just that the
 rendering which falls out should be the same as if you'd explicitly 
requesting min-content width.)

The first statement is true: whatever width `auto` decides, `stretch` 
can only increase it. But we are here discussing `auto` for 
`min-width`, which is not the same as `auto` for width.

The second clause “The 10px column merely provides the containing 
block width” is also true.

Then we have “and layout then ends up making it min-content” ... at 
that point the spec put min-content minimums on all auto-sized tracks,
 but this track is not auto-sized. And there was no implied minimum 
size on items themselves; `min-width: auto` still computed to zero. 
(Auto minimums were added to Grid in 
https://lists.w3.org/Archives/Public/www-style/2015Jan/0166.html which
 was January 2015.) So I am not sure where this assertion is coming 
from.

Agree it would be good to have author feedback; my feeling though is 
that fixed track sizes are thought of similarly to fixed sizes on the 
item itself, and it's good for the automatic minimum to not overrule 
that. (Auto minimums are supposed to be minimally invasive. ;)

The interesting question then becomes, what does `auto` mean for 
`width`/`height` themselves on a grid item? It Doesn't appear that 
this is defined. The only definition I'm seeing is 
https://drafts.csswg.org/css-align/#justify-self-property which only 
defines it for `stretch`.

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

Received on Tuesday, 9 August 2016 16:10:59 UTC