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

Re: [csswg-drafts] [css-sizing] Decide how to handle `min-width/min-height: auto` for non-grid/flex items

From: Daniel Holbert via GitHub <sysbot+gh@w3.org>
Date: Wed, 07 Feb 2018 04:04:56 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-363650437-1517976290-sysbot+gh@w3.org>
I tend to think that it should apply, though I don't think any spec text says that it would.  And really, CSS2 has text saying that for `min-height` (which in CSS2 was the only one of the `min-{size}` properties that could have an indefinite basis), it falls back to '0':
> The percentage is calculated with respect to the height of the generated box's containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the percentage value is treated as '0'


I suspect "treated as '0'" there was really meant to signify "treated as the initial value".  And so now, under that interpretation, this scenario should now fall back to `auto`-which-then-usually-gets-treated-as-`0`...  This might want its own spec issue, though.

GitHub Notification of comment by dholbert
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2248#issuecomment-363650437 using your GitHub account
Received on Wednesday, 7 February 2018 04:05:46 UTC

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