Skip to content

The syntax for CSS random() is out-of-date #44502

Description

@bramus

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 w3c/csswg-drafts#13132 (comment) resolution

What did you expect to see?

The 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?

w3c/csswg-drafts#13132 (comment)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:CSSCascading Style Sheets docsaccepting PRFeel free to open a PR to resolve this issue

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions