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: Manuel Rego Casasnovas via GitHub <sysbot+gh@w3.org>
Date: Wed, 31 May 2017 09:40:37 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-305139708-1496223636-sysbot+gh@w3.org>
> There's nothing in §6.6 that says the clamping should only be applied for some alignment values.
> It's independent of justify/align-self as far as I understand.

But check [§6.2](https://drafts.csswg.org/css-grid/#grid-item-sizing), the table says that for non-replaced elements with alignment other than `normal` or `stretch`, the item should be size like `fit-content` (instead of *fill grid area*).
[I've a jsbin with an example](http://jsbin.com/dufocad/1/edit?html,css,output) about this.

Note that I've realized that Firefox is doing something different than Chrome if the item has `min|fit|max-content` size.
Let's use [a different example for this](http://jsbin.com/gugenok/1/edit?html,css,output), for this jsbin in Chrome the size of the item is 20x20 in the first grid and 120x100 in the other 3. In Firefox it's 20x20 in the first 3 grids and 120x20 in the last one.

GitHub Notification of comment by mrego
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1394#issuecomment-305139708 using your GitHub account
Received on Wednesday, 31 May 2017 09:40:44 UTC

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