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

https://drafts.csswg.org/css-grid-2/#resolved-track-list-subgrid

> When an element generates a [grid container](https://drafts.csswg.org/css-grid-2/#grid-container) box that is a [subgrid](https://drafts.csswg.org/css-grid-2/#subgrid), the [resolved value](https://drafts.csswg.org/cssom-1/#resolved-value) of the [`grid-template-rows`](https://drafts.csswg.org/css-grid-2/#propdef-grid-template-rows) and [`grid-template-columns`](https://drafts.csswg.org/css-grid-2/#propdef-grid-template-columns) properties represents the [used](https://drafts.csswg.org/css-cascade-5/#used-value) number of columns, serialized as the [`subgrid`](https://drafts.csswg.org/css-grid-2/#valdef-grid-template-rows-subgrid) keyword followed by a list representing each of its lines as a [line name set](https://drafts.csswg.org/css-grid-2/#line-name-set) of all the line’s names explicitly defined on the subgrid (not including those adopted from the [parent grid](https://drafts.csswg.org/css-grid-2/#parent-grid)), **without using the [`repeat()`](https://drafts.csswg.org/css-grid-2/#funcdef-repeat) notation**.

This was discussed in #4362.

> Since `auto-fit` can't be expanded (as this requires grid layout to compute)

Resolved values from `getComputedStyle()` can depend on layout (e.g. `width: auto` serializes to an absolute length). The internal computed value should preserve `repeat()` indeed, but AFAIK this is only observable via inheritance, interpolation, or TypedOM.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8555#issuecomment-1463133402 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 02:27:40 UTC