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: Tue, 29 Nov 2016 13:48:07 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-263574118-1480427285-sysbot+gh@w3.org>
> Note the use of “max” here. It means that the auto keyword and 
minmax(foo,auto) are treated the same in the application of this 
sentence. I think doing otherwise would be confusing. Authors can 
always set the min-width of the item itself to zero if that's what 
they want.

Yes sorry I was thinking about the track sizes on that moment. I was 
mixing things. :-(

Coming back to the example:
```html
  <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>
  </div>
```

A) With `minmax(0px, 500px)` the item should be 40px  (minimum size is
 clamped) and the track 40px too.
B) With `minmax(0px, auto)` (where `auto` is for example 250px) the 
item should be 250px but the track should be 40px.
C) With `auto` both the item and the track should be 250px.


-- 
GitHub Notification of comment by mrego
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/283#issuecomment-263574118 
using your GitHub account
Received on Tuesday, 29 November 2016 13:48:13 UTC

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