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

[csswg-drafts] [css-grid] `auto-fit` behaves like `auto-fill` if an element spans all columns or rows

From: Phil McCloghry-Laing via GitHub <sysbot+gh@w3.org>
Date: Fri, 27 Jul 2018 04:52:19 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-345090000-1532667124-sysbot+gh@w3.org>
pmccloghrylaing has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-grid] `auto-fit` behaves like `auto-fill` if an element spans all columns or rows ==
Spec: https://www.w3.org/TR/css-grid-1/#auto-repeat
Codepen: https://codepen.io/pmccloghrylaing/full/PBJNKG/

There doesn't appear to be a way to create `auto-fit` columns/rows in combination with an element spanning all of those columns/rows. The linked codepen is for a pure CSS tabs layout where I have attempted to use `auto-fit`.

>From what I've read of the spec I'm gathering that because an element spans all columns, each column has an "in-flow grid item" so none of the columns collapse. If that's the case maybe it would be worth providing a way to remove a grid item from those calculations?


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2956 using your GitHub account
Received on Friday, 27 July 2018 04:53:33 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 July 2018 04:53:36 UTC