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

Re: [csswg-drafts] [css-grid] Stretching Fixed-size Tracks

From: Manuel Rego Casasnovas via GitHub <sysbot+gh@w3.org>
Date: Thu, 14 Jul 2016 06:01:01 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-232564375-1468476059-sysbot+gh@w3.org>
Just a quick thought, if we decide to stretch fixed-size tracks, as 
`stretch` is the default value for `justify-content`, a very simple 
grid example will stretch horizontally to take whole viewport (dunno 
if we want that to be the default behavior).

So this example:
```html
  <div style="display: grid; grid-template-columns: 100px 100px;">
    <div style="background: magenta;">item 1</div>
    <div style="background: cyan;">item 2</div>
  </div>
```

Would be the same than using `grid-template-columns: 1fr 1fr;`.
Dunno if that's what we want by default in all the grids, but IMHO the
 first time you use them you might be quite confused.


-- 
GitHub Notification of comment by mrego
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/320#issuecomment-232564375 
using your GitHub account
Received on Thursday, 14 July 2016 06:01:08 UTC

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