W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

Re: [csswg-drafts] [css-flexbox-1][css-sizing-3] Definiteness of `min-height: min-content` (#6457)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Mon, 30 Aug 2021 22:04:38 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-908733927-1630361076-sysbot+gh@w3.org>
@davidsgrogan If I understand correctly, `height: min-content` would matter in grid (and probably flexbox too):

<div style="display: grid; grid-template-rows: minmax(0, 100px); height: min-content; border: solid"></div>

In https://drafts.csswg.org/css-grid/#algo-grow-tracks the base size of the row is 0px, the growth limit is 100px, but we don't distribute space under a min-content constraint. So the height should become 0px. Browsers just treat it as `height: auto`, though.

GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6457#issuecomment-908733927 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 30 August 2021 22:04:40 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:48 UTC