W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2016

Re: [csswg-drafts] [css-grid][css-align] Align vs Grid vs undefined on how grid items are sized

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Tue, 16 Aug 2016 04:14:54 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-239996943-1471320892-sysbot+gh@w3.org>
Ok, I went over this issue with the Microsoft folks, and my conclusion
 is that we need to make sure grid items are sized the same (in both 
axes) as flex items are in the cross axis. This is for consistency 
with flexbox, whose behavior is much more grid-like in the cross axis 
(e.g. lines ~ tracks, items don't stack they stay in their own 
lines/tracks). This allows items to take the size of the tracks 
they're in, which is probably closer to author expectations (and 
Microsoft seems to have concluded this as well, since that's what 
their implementation does).

Concretely, this means applying the CSS2.1 non-replaced block width 
formula to items when they are stretched, and fit-content sizing for 
other alignment values. I'll create edits to the spec as appropriate. 
Please let me know if you have any additional comments or 
considerations here.

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/394#issuecomment-239996943 
using your GitHub account
Received on Tuesday, 16 August 2016 04:15:01 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:22 UTC