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

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