← Back to release summary

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

Ecosystem

Docs: https://github.com/w3c/csswg-drafts/issues/4475

Explainers: https://github.com/w3c/csswg-drafts/issues/4475

View on chromestatus.com