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: fantasai via GitHub <sysbot+gh@w3.org>
Date: Fri, 01 Feb 2019 23:42:48 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-459906137-1549064567-sysbot+gh@w3.org>
> Are these dimensions the same, or independent?

It doesn't matter? Afaict whichever way you want to interpret it, the paragraph means the same thing...

> So if I have an item with min-width: auto in a column sized with 100px, it has an aspect ratio of 3:1 and height: 50px, then this seems to mean it should clamp the input (i.e. the height 50px) by the max column size 100px, which is still 50px, then convert it through the aspect ratio, which is 150px, and this overflows the column.

No, it would clamp the input from the current dimension into the transferred size of the opposite dimension. See https://github.com/w3c/csswg-drafts/issues/767

GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3573#issuecomment-459906137 using your GitHub account
Received on Friday, 1 February 2019 23:42:49 UTC

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