Skip to content

CSS repeat() function: page rewrite - #44601

Merged
estelle merged 11 commits into
mainfrom
gaps3-repeat
Jul 24, 2026
Merged

CSS repeat() function: page rewrite#44601
estelle merged 11 commits into
mainfrom
gaps3-repeat

Conversation

@estelle

@estelle estelle commented Jun 29, 2026

Copy link
Copy Markdown
Member

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 #44597
the gap decoration properties will be added soon.

@estelle
estelle requested a review from a team as a code owner June 29, 2026 19:34
@estelle
estelle requested review from hamishwillee and removed request for a team June 29, 2026 19:34
@github-actions github-actions Bot added Content:CSS Cascading Style Sheets docs size/m [PR only] 51-500 LoC changed labels Jun 29, 2026
@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Preview URLs (1 page)

Flaws (8)

Found an unexpected or unresolvable flaw? Please report it here.

URL: /en-US/docs/Web/CSS/Reference/Values/repeat
Title: repeat() CSS function
Flaw count: 8

  • macros:
    • Macro cssxref produces link /en-US/docs/Web/CSS/rule-color which doesn't resolve
    • Macro cssxref produces link /en-US/docs/Web/CSS/rule-style which doesn't resolve
    • Macro cssxref produces link /en-US/docs/Web/CSS/rule-width which doesn't resolve
    • Macro cssxref produces link /en-US/docs/Web/CSS/rule which doesn't resolve
    • Macro cssxref produces link /en-US/docs/Web/CSS/line-width which doesn't resolve
    • and 3 more flaws omitted

(comment last updated: 2026-07-24 10:18:11)

Comment thread files/en-us/web/css/reference/values/repeat/index.md Outdated
Comment thread files/en-us/web/css/reference/values/repeat/index.md Outdated
estelle and others added 2 commits July 18, 2026 23:43
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
@estelle
estelle requested a review from hamishwillee July 18, 2026 21:44
Comment thread files/en-us/web/css/reference/values/repeat/index.md Outdated
Comment thread files/en-us/web/css/reference/values/repeat/index.md Outdated
@estelle
estelle requested a review from hamishwillee July 21, 2026 20:31
Comment thread files/en-us/web/css/reference/values/repeat/index.md Outdated

@hamishwillee hamishwillee left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @estelle

I think this is good, though I find CSS challenging to review due to the density of information. In any case, approving with nit https://github.com/mdn/content/pull/44601/changes#r3642611221 for you to consider.

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
@estelle
estelle merged commit 01b76b3 into main Jul 24, 2026
12 of 13 checks passed
@estelle
estelle deleted the gaps3-repeat branch July 24, 2026 10:17
estelle added a commit to estelle/content that referenced this pull request Jul 28, 2026
* start of repeat() rewrite

* Rewrite CSS repeat() function

* tweaks

* typo

* typo

* Update files/en-us/web/css/reference/values/repeat/index.md

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>

* Update files/en-us/web/css/reference/values/repeat/index.md

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>

* Consistency fixes

* edits per review

* Update files/en-us/web/css/reference/values/repeat/index.md

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>

---------

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
@estelle estelle mentioned this pull request Jul 28, 2026
65 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:CSS Cascading Style Sheets docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants