W3C home > Mailing lists > Public > public-css-archive@w3.org > January 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, 31 Jan 2018 19:14:35 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-362039169-1517426074-sysbot+gh@w3.org>
Ah, now I see that the spec *does* actually say that `auto` computes to `0` for non-flex/grid items, in CSS-Sizing Section 3.2:
> `auto`:
> [...]
> For min-width/min-height, specifies an automatic minimum size
> Unless otherwise defined by the relevant layout module, this computes to zero.


I was misled/confused by the main definition of this property/value further up, in CSS-Sizing Section 3.1:
> Name: | min-width, min-height
> Initial: | auto
> Computed value: | as specified, with lengths made absolute

The "lengths made absolute" text there doesn't sound like it would have any effect on "auto" (because "auto" is not a `<length>`).  So these two sections seem to be in conflict right now.

-- 
GitHub Notification of comment by dholbert
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2248#issuecomment-362039169 using your GitHub account
Received on Wednesday, 31 January 2018 19:15:20 UTC

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