W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2016

Re: [csswg-drafts] [css-grid] Implied Minimum Size of Grid Items

From: Manuel Rego Casasnovas via GitHub <sysbot+gh@w3.org>
Date: Thu, 24 Nov 2016 12:50:28 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-262769354-1479991827-sysbot+gh@w3.org>
And now thinking again about [2) from my previous 

  <div style="display: inline-grid; width: 40px; height: 40px; grid: 
minmax(0px, auto) / minmax(0px, auto); border: thick solid; font: 
100px/1 Monospace;">
    <div style="background: magenta;">item</div>

A) If instead of `minmax(0px, auto)` we use `minmax(0px, 500px)`, both
 browsers agree that the item should be 40x40:

B) So, if we use `minmax(0px, auto)` and `auto` is bigger than 40px 
(let's say 250px), I believe we should still behave the same and the 
item should still be 40x40.

C) However if the track is only `auto`, then is when the minimum size 
plays its role and causes it to be bigger (250px) and overflow the 
grid container.


This is related to the step of the alogrithm in which we maximize the 
track sizes, as the free space would be only the 40px of the grid 

Note that in these examples Firefox and Chromium have the same 
behavior for A) and C) but not for B).

GitHub Notification of comment by mrego
Please view or discuss this issue at 
using your GitHub account
Received on Thursday, 24 November 2016 12:50:35 UTC

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