CSS repeat() function: page rewrite#44601
Open
estelle wants to merge 5 commits into
Open
Conversation
Contributor
|
Preview URLs (1 page) Flaws (12) Found an unexpected or unresolvable flaw? Please report it here. URL:
(comment last updated: 2026-06-30 08:48:53) |
hamishwillee
reviewed
Jul 3, 2026
| --- | ||
|
|
||
| The **`repeat()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/Reference/Values/Functions) represents a repeated fragment of the [track list](/en-US/docs/Web/CSS/Guides/Grid_layout/Basic_concepts), allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form. | ||
| The **`repeat()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/Reference/Values/Functions) represents a repeated fragment of the [track list](/en-US/docs/Web/CSS/Guides/Grid_layout/Basic_concepts) or [rule-line list], allowing a large number of columns and rows, and their gap decorations, that exhibit a recurring pattern to be written in a more compact form. |
Collaborator
There was a problem hiding this comment.
If it were me, short choppy sentences. This might not be right, but something to consider.
Suggested change
| The **`repeat()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/Reference/Values/Functions) represents a repeated fragment of the [track list](/en-US/docs/Web/CSS/Guides/Grid_layout/Basic_concepts) or [rule-line list], allowing a large number of columns and rows, and their gap decorations, that exhibit a recurring pattern to be written in a more compact form. | |
| The **`repeat()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/Reference/Values/Functions) represents a repeated fragment of the [track list](/en-US/docs/Web/CSS/Guides/Grid_layout/Basic_concepts) or [rule-line list]. It allows repeated patterns of columns, rows, and their gap decorations, to be written in a compact form. |
hamishwillee
reviewed
Jul 3, 2026
| - an integer to set the repeat count | ||
| - [`<fixed-size>`](#fixed-size) values to set track sizes. | ||
| - {{cssxref("integer")}} | ||
| - : An positive integer greater than or equal to `1` specifying the number of times the second parameter feature list will be repeated. |
Collaborator
There was a problem hiding this comment.
Suggested change
| - : An positive integer greater than or equal to `1` specifying the number of times the second parameter feature list will be repeated. | |
| - : An positive integer greater than or equal to `1` specifying the number of times the feature list in the second parameter will be repeated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
repeat is no longer limited to grid. It can now be used from all the gap decoration properties.
spec: https://drafts.csswg.org/css-gaps-1/#lists-repeat
This work attempts to reduce much of the property-specific language and expand the value type to include repeat and auto-repeat for properties that accept comma separated lists of values
Part of openwebdocs/project#238
<line-width>is added in #44597the gap decoration properties will be added soon.