W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2017

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

From: François REMY via GitHub <sysbot+gh@w3.org>
Date: Mon, 29 May 2017 22:50:42 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-304741081-1496098240-sysbot+gh@w3.org>
Well, you can technically make it work for "width" if you consider the tracks sized with "auto", "fr" and "percentages" (if widthis content-dependent) to be infinite and therefore content will never need any other cell on their right.

This doesn't work for height though, because the height of the items depends on their width and their width depend on the track sizes which themselves depend on content placement. Making it work in one direction and not the other seems meh and confusing to me, probably not worth pursuing. 

As Tab mentioned however, if the grid is fully fixed in both directions, then you can do the item layout as you are placing them, but that is fundamentally different from how grid works today. A completely different algorithm.

-- 
GitHub Notification of comment by FremyCompany
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1394#issuecomment-304741081 using your GitHub account
Received on Monday, 29 May 2017 22:50:49 UTC

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