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

kbabbitt has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-gaps-1] Auto repeater behavior when number of gaps is less than number of values ==
Gap decoration properties allow a CSS-Grid-like [repeat() notation](https://drafts.csswg.org/css-gaps-1/#lists-repeat) 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:
```css
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?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11492 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 13 January 2025 18:18:50 UTC