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.
Documentation
Specification
Status in Chromium
On hold (tracking bug)
Consensus & Standardization
- In development
- No signal
- In development
- No signals
Owner
Search tags
css-grid,Last updated on 2020-11-19
Comments
Shipped in 81, but reverted in 81.0.4044.0 because site authoring tools were relying on the previous behaviour, and there is no alternative API yet. May repursue after such an API is available.