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

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

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Tue, 16 Aug 2016 04:25:45 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-239997960-1471321544-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. See 
https://github.com/w3c/csswg-drafts/issues/394 for further discussion.

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, and it means that the implied minimum can't 
take effect on fixed tracks. Note that on auto-sized tracks, whether 
the implied minimum is used solely for track sizing or also for sizing
 the item itself is indistinguishable.

Additionally, the major consideration for adding implied minimum sizes
 to the main axis of flex items was for the viewer's benefit when the 
screen was made too small. Flex items do not shrink past their minimum
 main size--but importantly, they also do not overlap each other 
within a line, because their positions are determined by previous 
content, not by the position/size of their container (the line). Grid 
items, if they were floored at their content-size, do not shift in 
such a manner, and they would overlap each other within the 
row/column. Forcing a minimum on the item doesn't really help the user
 so much in this case.

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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:01 UTC