Re: [csswg-drafts] [css-grid] Should grid-template-areas accept empty strings? (#5110)

I guess the utility of this is something like

```css
#grid {
  display: inline-grid;
  grid-auto-columns: 50px 100px;
  grid-auto-rows: 50px 100px;
  grid-template-areas: "";
  border: solid;
}
```

and if the grid is empty, you get a 50px tall and 0px wide grid. If you used `grid-template-areas: "."` you would get a 50x50 square. If you used `grid-template-rows: 50px` then you would have to reorder `grid-auto-rows: 100px 50px` in case there are two items, but this would also affect leading implicit tracks. Maybe `grid-template-rows: 50px repeat(auto-fit, 100px)` could be an alternative?

Anyways I don't know why somebody would want to do this, and allowing it for rows but not for columns is not much consistent either.

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

Received on Monday, 25 May 2020 16:57:45 UTC