Skip to content

updated the <random-key> values for random() - #30756

Open
dletorey wants to merge 14 commits into
mdn:mainfrom
dletorey:45903-css-random
Open

dletorey wants to merge 14 commits into
mdn:mainfrom
dletorey:45903-css-random

Conversation

@dletorey

@dletorey dletorey commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The spec has been updated and new values have been added to simplify the sharing of random values.

Added:

  • element-scoped
  • property-scoped
  • property-index-scoped
  • fixed <number>

Test results and supporting details

Used this pen to test:

  • Firefox Nightly (159.0a1) - all passed
  • Chrome Canary (157.0.8086.0) - all passed
  • Safari Tech Preview (252) - all passed
  • Safari (27.0) - all passed, except property-scoped & property-index-scoped

Related issues

@github-actions github-actions Bot added data:css Compatibility data for CSS features. https://developer.mozilla.org/docs/Web/CSS size:l Pull request changing 101-1,000 lines of code. labels Oct 5, 2026
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

The lint check found auto-fixable issues. Apply suggested changes (attributed to bcd-linter), or to fix all at once, run npm run lint:fix locally.

See also: Automated lint suggestions on pull requests

dletorey and others added 5 commits October 5, 2026 16:51
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

@caugner caugner left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Versions LGTM, but let's add spec URLs, and maybe also descriptions

Comment thread css/types/random.json
Comment thread css/types/random.json
Comment thread css/types/random.json
Comment thread css/types/random.json
Comment thread css/types/random.json
@dletorey
dletorey requested a review from caugner October 13, 2026 09:55
Comment thread css/types/random.json Outdated
Comment thread css/types/random.json Outdated
Comment thread css/types/random.json Outdated
Comment thread css/types/random.json Outdated
Comment thread css/types/random.json Outdated
Comment thread css/types/random.json Outdated
Comment thread css/types/random.json Outdated
Comment thread css/types/random.json Outdated
Comment thread css/types/random.json Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:css Compatibility data for CSS features. https://developer.mozilla.org/docs/Web/CSS size:l Pull request changing 101-1,000 lines of code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants