Skip to content

[css-grid] Clarify "set" and "reset" in shorthand definitions #7720

Closed
@cdoublev

Description

@cdoublev

The grid and grid-template properties are shorthands that can be used to set all three explicit grid properties (grid-template-rows, grid-template-columns, and grid-template-areas) at the same time. The grid shorthand also resets properties controlling the implicit grid, whereas the grid-template property leaves them unchanged.

https://drafts.csswg.org/css-grid-2/#explicit-grids

Because there is at the same time, I assume that set all three explicit grid properties means that setting the shorthand will result to a declaration for each sub-property, possibly to its initial value, and whether or not an explicit value is specified in the shorthand input value for each sub-property.

Then I would like to suggest replacing resets by sets because grid also allows to set grid-auto-* from a value explicitly specified in the input value.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions