Re: [csswg-drafts] [css-grid-2] Computed value for integer repeats on grid-template-columns and grid-template-rows for non-subgrids (#8555)

OK, I missed that this was a full example. Then, https://drafts.csswg.org/css-grid-2/#subgrid-listing

> If there is no [parent grid](https://drafts.csswg.org/css-grid-2/#parent-grid) [...] the [used value](https://drafts.csswg.org/css-cascade-5/#used-value) is the initial value, [none](https://drafts.csswg.org/css-grid-2/#valdef-grid-template-rows-none), and the grid container is not a [subgrid](https://drafts.csswg.org/css-grid-2/#subgrid).

Thus we have a standalone axis, not a subgridded axis (it's still a `subgrid`axis though), and https://drafts.csswg.org/css-grid-2/#resolved-track-list-standalone applies.

> Otherwise, (e.g. when the element has [display: none](https://drafts.csswg.org/css-display-4/#propdef-display) or is not a [grid container](https://drafts.csswg.org/css-grid-2/#grid-container)) the resolved value is simply the [computed value](https://drafts.csswg.org/css-cascade-5/#computed-value).

And per https://drafts.csswg.org/css-grid-2/#computed-tracks

> The [computed track list](https://drafts.csswg.org/css-grid-2/#computed-track-list) of a [`subgrid`](https://drafts.csswg.org/css-grid-2/#valdef-grid-template-rows-subgrid) axis is the `subgrid` keyword followed by a [list](https://infra.spec.whatwg.org/#list) of [line name sets](https://drafts.csswg.org/css-grid-2/#line-name-set) and [computed repeat notations](https://drafts.csswg.org/css-grid-2/#computed-repeat-notation) representing the line names specified for that axis.

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


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

Received on Friday, 10 March 2023 19:37:30 UTC