W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2019

Re: [csswg-drafts] [css-grid] Dimensions unclear when clamping content-based minimum size (#3573)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Sat, 02 Feb 2019 01:07:45 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-459919036-1549069662-sysbot+gh@w3.org>
OK, I get it now, thanks. In

> its input to the transferred size suggestion in the opposite dimension

my understanding was that the thing "in the opposite dimension" was the "input", not the "transferred size suggestion", which didn't make much sense.

It would be clearer if the spec used the wording from your comment, i.e.

> its input from the current dimension to the transferred size suggestion of the opposite dimension

Or even better refactor the whole thing like

> The ***foobar*** of a grid item in a given dimension is, if it spans only grid tracks that have a fixed max track sizing function, the stretch fit into the sum of those grid tracks’ max track sizing functions plus any intervening fixed gutters. Otherwise, it's infinite.
> - ***specified size suggestion***
>   If the item’s computed preferred size property in the relevant axis is definite, then the specified size suggestion is that size, clamped by the relevant max size property if it’s definite, and further clamped by the *foobar* of the grid item in that axis.
> - ***transferred size suggestion***
>   If the item has an intrinsic aspect ratio and its computed preferred size property in the opposite axis is definite, then the transferred size suggestion is that size, clamped by the opposite-axis min and max size properties if they are definite, further clamped by the *foobar* of the grid item in the opposite axis, converted through the aspect ratio and finally clamped by the same-axis max size property if it’s definite.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3573#issuecomment-459919036 using your GitHub account
Received on Saturday, 2 February 2019 01:07:48 UTC

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