The syntax for CSS random() is out-of-date
- Dominant language
- Markdown
- Stars
- 11k
- Forks
- 23.2k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 331
Description
### MDN URL
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/random
### What specific section or headline is this issue about?
_No response_
### What information was incorrect, unhelpful, or incomplete?
The keywords to use in `random()` and how just specifying a dashed ident have changed, as per https://github.com/w3c/csswg-drafts/issues/13132#issuecomment-3998898114 resolution
### What did you expect to see?
The [random cache key](https://drafts.csswg.org/css-values-5/#typedef-random-cache-key) values are now `element-scoped`, `property-scoped` and `property-index-scoped` which are not present in the current documentation.
### Do you have any supporting links, references, or citations?
https://github.com/w3c/csswg-drafts/issues/13132#issuecomment-3998898114
### Do you have anything more you want to share?
Safari 27 will ship an updated implementation that uses these new keywords. The implementation in Chrome Canary has not been updated (yet).
### MDN metadata
Page report details
* Folder: `en-us/web/css/reference/values/random`
* MDN URL: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/random
* GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/css/reference/values/random/index.md
* Last commit: https://github.com/mdn/content/commit/a8b7faffbd3fdeae5c0be97793d963d8a31cd1cf
* Document last modified: 2026-04-22T11:39:37.000Z
Contributor guide
Assessment
This issue has not been assessed yet.