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

There is, kinda - if you make the element `position:absolute`, you can still use the grid-positioning properties to set it up into a particular grid area, then use `top:0`/etc to make it fill the whole grid area.  It's not counted as a grid item then. However, *because* it's not a grid item, it's also not considered when the grid layout algorithm runs, so CSS won't ensure that the tracks it crosses are large enough to fit its content.

It's not completely clear to me from your example what you were actually wanting, tho - was it that you wanted the tabs to completely fill their row, so with two tabs each was 50% of the screen, etc?

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2956#issuecomment-408495968 using your GitHub account

Received on Friday, 27 July 2018 18:05:12 UTC