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

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

From: Manuel Rego Casasnovas <rego@igalia.com>
Date: Thu, 05 Nov 2015 13:48:03 +0100
Message-ID: <563B5003.7060300@igalia.com>
To: www-style@w3.org
Hi,

thanks for the reply.

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.

Bye,
  Rego
Received on Thursday, 5 November 2015 12:48:38 UTC

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