- From: Kurt Catti-Schmidt via GitHub <sysbot+gh@w3.org>
- Date: Fri, 10 Mar 2023 00:06:00 +0000
- To: public-css-archive@w3.org
KurtCattiSchmidt has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-grid-2] Computed value for integer repeats on grid-template-columns and grid-template-rows for non-subgrids == I'm working on implementing this in Chromium, and I see that Firefox and Safari have implemented this case differently. To repro, you can paste this in your browser's address bar and look at the computed value in developer tools: `data:text/html,<div style="grid-template-columns: subgrid repeat(2, [a]);"></div>` Firefox reports `subgrid [a][a]`, while Safari preserves the repeat syntax `subgrid repeat(2, [a])` https://www.w3.org/TR/css-grid-2/#computed-tracks "The [computed track list](https://www.w3.org/TR/css-grid-2/#computed-track-list) of a [subgridded axis](https://www.w3.org/TR/css-grid-2/#subgridded-axis) is the [subgrid](https://www.w3.org/TR/css-grid-2/#valdef-grid-template-rows-subgrid) keyword followed by a [list](https://infra.spec.whatwg.org/#list) of [line name sets](https://www.w3.org/TR/css-grid-2/#line-name-set) representing each line in that axis." There's also a section below (https://www.w3.org/TR/css-grid-2/#resolved-track-list-standalone) which explains what to do for `grid-template-rows` on a non-grid, and has an example that expands integer auto repeaters. It doesn't say what to do for when `subgrid` is included, however. It also doesn't say whether to expand for `auto-fill` or `auto-fit` in either case. I think the most consistent behavior here is to expand the integer auto repeaters, as Firefox does, as that's most consistent with standalone grids. Since `auto-fit` can't be expanded (as this requires grid layout to compute), it makes sense to preserve the specified `repeat(auto-fit, ...)`,. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8555 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 00:06:01 UTC