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

Re: [css-grid] About the meaning of being "sized under min|max-content constraint"

From: Sergio Villar Senin <svillar@igalia.com>
Date: Fri, 6 Nov 2015 12:26:57 +0100
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style list <www-style@w3.org>
Message-ID: <563C8E81.1060506@igalia.com>
On 06/11/15 01:18, Tab Atkins Jr. wrote:
>> For #one the item takes as much height as it needs to position all the
>> > text in one "column" (i.e. only obeys its auto height), but in #two the
>> > item is indeed sized under min-content constraint. So, why should we
>> > want to have a different behavior for grid containers?
> The example doesn't show what you think it does, but actually you're
> right, your original example 1 and 2 are correct per spec right now.
> In your example 2, or #one (height:min-content on parent), the parent
> is a block, which always treats block-axis min-content as identical to
> auto, so the child never even sees a min-content constraint.

Oh indeed, you're absolutely right on that, and it explains what I was
observing. I knew it but I failed to join the dots :).

Received on Friday, 6 November 2015 11:27:41 UTC

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