You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
That makes sense for grid tracks. For gap decorations it would imply that, if the gap decoration properties specify more gaps than the grid properties, we'd introduce additional empty tracks just to account for the decorations. I was aiming to keep gap decorations purely a paint-time effect and not influence layout, but maybe that's not what authors would expect?
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:
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?
The text was updated successfully, but these errors were encountered: