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

> Need to be careful with auto repetitions:

Right, we'd want to only allow `subgrid <track-list>`, not `subgrid <auto-track-list>`.

> Personally I prefer to have an explicitly declared fallback similar to how custom properties have fallbacks: everything after the comma is the fallback value. This is syntactically clear and prevents any processing confusion. Either A or B, not both.

We'd like to avoid that for a few reasons. 

One, we want to leave open the possibility of allowing an element to host multiple grids, as this has been a request in the past, and a comma-separated value is the most straightforward grammar for such if we do that. 

Second, we do already allow specifying track lists *limited solely to names*, and just allowing a full track list seems a straightforward extension of that. 

Third, doing it this way removes the possibility of a grid having different track setups entirely based on it being subgridded or not, which seems like a good thing that will reduce confusion. Similarly it means you don't have to repeat line names for the two situations, with the possibility of them going out of sync.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6692#issuecomment-1055849824 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 20:56:56 UTC