W3C home > Mailing lists > Public > www-style@w3.org > December 2015

Re: [css-align][css-grid] About stretch and justify|align-self|items properties

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 3 Dec 2015 15:38:19 -0800
Message-ID: <CAAWBYDAeAka4SR0gLmPJTsS+kzJoZS5KwcZsfN6YLoX7f3tgjw@mail.gmail.com>
To: Manuel Rego Casasnovas <rego@igalia.com>
Cc: www-style list <www-style@w3.org>
On Thu, Nov 5, 2015 at 4:48 AM, Manuel Rego Casasnovas <rego@igalia.com> wrote:
> On 04/11/15 22:01, Tab Atkins Jr. wrote:
>>> By default ("stretch") item's size would be 50x50.
>>> But if we use "justify|align-self: start;" the item's size will be
>>> 100x100 (because of "grid items will auto-size to fit their contents"
>>> from the quote above).
>>> So "stretch" is somehow shrinking the item in this particular example.
>>>
>>> Notice that the "stretch" case with the default value for
>>> "min-width|height: auto;" will be 100x100 too.
>>
>> Yeah, same behavior from Flexbox. Do you want a note or example or
>> something here?
>
> Dunno, maybe a note is enough. At least, it seemed something weird to me
> that "stretch" was actually shrinking things in some cases.

Added a note.

~TJ
Received on Thursday, 3 December 2015 23:39:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:58 UTC