Skip to content

[css-gaps-1] Auto repeater behavior when number of gaps is less than number of values #11492

@kbabbitt

Description

@kbabbitt

Gap decoration properties allow a CSS-Grid-like repeat() notation to specify patterns of repeating items. The first parameter to repeat() can be "auto" in which case we generate as many iterations as necessary to cover all the gaps.

The repeat() notation can also be combined with fixed value specifications, for example:

column-rule-color: black repeat(auto, red blue) white;

Which would produce a black decoration in the first gap, a white decoration in the last gap, and alternating red and blue decorations in the in-between column gaps.

This leaves open the question of what to do with such a combination when the number of gaps is less than the number of values provided. Currently, the spec prioritizes values before the auto repeater, then values after the auto repeater, then uses the auto repeater to fill in any missing values. Is this the best option?

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Friday afternoon

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions