Exclude implicit tracks from grid-template-rows/columns resolved values
- Category
- CSS
- Type
- New or changed feature
- Status
- On hold (Chrome On hold)
- Intent stage
- Evaluate readiness to ship
WPT details: Currently there are various WPT tests that check that implicit tracks are included. They will be updated when implementing the change so that they continue passing, see https://crrev.com/c/1897931
Summary
Implicit tracks will be excluded from the resolved values of the grid-template-rows and grid-template-columns. Previously, all tracks were included, whether implicit or explicit.
Motivation
This change aims to make the resolved values round-trip, which is one of the most fundamental rules for getComputedStyle(). That is, reassigning the resolved value provided by getComputedStyle() as a specified value shouldn't change the number of tracks nor their sizes. The current behavior is problematic because the specified values of grid-template-rows and grid-template-columns are only able to define explicit tracks, while the resolved values include implicit tracks.
Standards & signals
- Specification: https://drafts.csswg.org/css-grid/#resolved-track-list
- Firefox: In development
- Safari: In development
- Web developers: No signals
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1024927
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=exclude-implicit-tracks-from-grid-template-rows-columns-resolved-values
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Exclude%20implicit%20tracks%20from%20grid-template-rows%2Fcolumns%20resolved%20values
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Exclude%20implicit%20tracks%20from%20grid-template-rows%2Fcolumns%20resolved%20values
- Baseline status: https://webstatus.dev/?q=Exclude%20implicit%20tracks%20from%20grid-template-rows%2Fcolumns%20resolved%20values
Docs: https://github.com/w3c/csswg-drafts/issues/4475
Explainers: https://github.com/w3c/csswg-drafts/issues/4475