Skip to content

[css-values-5] Should it be possible to use random-item() as a registered property initial value? #14926

Backlog

Description

@kbhomes

This is closely related to two separate issues:

I wanted to open a new issue specific to random-item() and initial-value because it touches on / is dependent on the above two separate issues. Essentially, should this property registration below work?

@property --tint-accent {
  syntax: "<color>";
  inherits: true;
  initial-value: random-item(--tint-accent, red, green, blue);
}

To me, it seems like this could be useful, but it requires:

Activity

  1. kbhomes commented on Dec 2, 2026

    @kbhomes
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions