Repository navigation
Description
Description
The random-item() function resolves to a random item from among its list of items.
color: random-item(--x, red, blue, green);Specification
web-feature
No response
Test Links
Additional Signals
Webkit:
https://bugs.webkit.org/show_bug.cgi?id=317312
https://bugs.webkit.org/buglist.cgi?quicksearch=random-item
[css-values-5] Enable random-item() by default: WebKit/WebKit#71629
in Safari Technology Preview 251:
https://webkit.org/blog/18194/release-notes-for-safari-technology-preview-251/
Bluesky post mentioning early intention to ship random() and random-item() together:
https://bsky.app/profile/webdevs.firefox.com/post/3muma3mocdk2f
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
[-]CSS `radom-item()`[/-][+]CSS `random-item()`[/+]github-actions commentedon Sep 15, 2026
This comment was automatically generated based on the information you provided. Please don't edit it.
No web features (from the web-features project) were found in your proposal. If your proposal doesn't correspond to a web feature, that is fine.
Otherwise, please update your initial comment to include
web-features: <feature-id>.To find feature IDs, use the web-features explorer.
bigandy commentedon Sep 16, 2026
Firefox issue has been created for random-item()
phantomxx29474 commentedon Nov 16, 2026
Safari 27.3 has it.
https://developer.apple.com/documentation/safari-release-notes/safari-27_3-release-notes
And Chrome 161 has it.
https://chromestatus.com/roadmap