Re: [csswg-drafts] [css-grid-2] conditional subgrid fallback when no parent grid is available (#6692)

Need to be careful with auto repetitions:
```css
grid-template-columns: subgrid [a] repeat(auto-fill, [b] 1fr [c]) [d];
```
If it's not a successful subgrid, assuming 2 repetitions, this would be like:
```css
grid-template-columns: [a b] 1fr [c b] 1fr [c d];
```
If it's a successful subgrid, again with 2 repetitions, if we just ignore the size and treat the repeat as a `<name-repeat>`,
```css
grid-template-columns: subgrid [a] [b] [c] [b] [c] [d];
```
That's quite different.

Also, what happens with `auto-fit`, does it become `auto-fill` if it's a subgrid?

It may be better to specify the fallback independently:
```
subgrid <line-name-list>? [, [<track-list> | <auto-track-list>] ]?
```

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 1 March 2022 10:32:22 UTC