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

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

From: Manuel Rego Casasnovas via GitHub <sysbot+gh@w3.org>
Date: Mon, 20 Nov 2017 20:17:14 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-345818317-1511209032-sysbot+gh@w3.org>
> D) With minmax(auto, 0px) or minmax(auto, 500px) (it doesn't matter the number of pixels we set as maximum) the size of the item and the track will be 250px too.

I believe this comment is wrong, and thus the following test is wrong too http://w3c-test.org/css/css-grid/grid-items/grid-minimum-size-grid-items-017.html
At least Firefox and Edge show a red rectangle there (in the current version as of 20th Nov 2017). Both Blink and WebKit show a green one, because I implemented both wrong following the assumption that the previous comment is right.

Basically this is wrong because the automatic minimum size has to be clamped as the max track sizing function is fixed. So in the case of `minmax(auto, 0px)` the automatic minimum size of the item gets clamped to 0px instead of 250px.

The Chromium bug is reported and will be fixed in the coming days: https://bugs.chromium.org/p/chromium/issues/detail?id=786971

GitHub Notification of comment by mrego
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/283#issuecomment-345818317 using your GitHub account
Received on Monday, 20 November 2017 20:17:18 UTC

This archive was generated by hypermail 2.3.1 : Monday, 20 November 2017 20:17:21 UTC