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

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

From: Sergio Villar Senin <svillar@igalia.com>
Date: Wed, 14 Oct 2015 17:46:40 +0200
To: fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org
Message-ID: <561E78E0.4030207@igalia.com>
On 22/09/15 02:07, fantasai wrote:
>>> It means when you're calculating the min-content/max-content
>>> contribution of the grid container, e.g. if the grid container
>>> happens to be inside a float (or is itself a float).
>> Oh, so I had taken it completely wrong. OK, just to be 100% sure,
>> you mean that it does not apply for example to the following
>> example:
>> <div style="display: grid; width: min-content;"></div>
> It does also apply to this example.

I should have used a better example, as I'm mainly interested in
heights. So in the following 2 examples:

  .grid { display:grid; grid-template: 20px / minmax(50px, 100px); }

  <div class="grid" style="height: min-content"></div>


  <div style="height: min-content">
    <div class="grid"></div>

what are the expected height of the grid container and the height of the
first and unique row of the grid?

In the code I'm planning to land in Blink soon those values are:

* example 1: grid container height:  50px; grid row: 50px;
* example 2: grid container height: 100px; grid row: 100px;

are those correct?

Received on Wednesday, 14 October 2015 15:47:07 UTC

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