W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2017

Re: [csswg-drafts] [css-flexbox]the 'auto' value should be add to 'flex-basis' ?

From: Chris Harvey via GitHub <sysbot+gh@w3.org>
Date: Sun, 30 Apr 2017 03:26:57 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-298208579-1493522815-sysbot+gh@w3.org>
This is confusing because the `auto` value for `flex-basis` behaves differently than the `auto` value for `width` (or `height`). And what's worse, if you *want* the width (or height) to be 'automatically sized', you must use `flex-basis: content`.

Because the `auto` keyword, even though already part of the `<'width'>` syntax, behaves differently, I completely understand @p2227's mistake in missing it. What a pedagogical nightmare!

May I suggest setting `auto` to trigger the 'automatic sizing' behavior, as it is for `<'width'>`, and introduce a new keyword `defer`, which would mean "look at my width or height property"?

GitHub Notification of comment by chharvey
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/329#issuecomment-298208579 using your GitHub account
Received on Sunday, 30 April 2017 03:27:03 UTC

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