- From: Kevin Babbitt via GitHub <noreply@w3.org>
- Date: Fri, 27 Mar 2026 22:18:01 +0000
- To: public-css-archive@w3.org
Substituting into the examples from the opening comment: >* `random(1, 10)` is max-random: virtually every instance on the page will be a different random value >* `random(--foo, 1, 10)` is min-random: every function that uses `--foo` will get the same random value >* `random(--foo element-scoped, 1, 10)` mixes in an element identifier, so usages on an element will all share the random value, but different elements will get different values >* `random(--foo property-scoped, 1, 10)` mixes in the property name, so usages in a single property will share the random value (still global across elements), but using it in different properties gives a different value >* `random(--foo property-scoped index-scoped, 1, 10)` mixes in the property name *and* the random function's index in the property, so multiple usages even in the same property will get different values. `element-scoped` and `property-scoped` seem pretty understandable. `index-scoped` is ... a little unusual of a term, but I can intuit the meaning from context. Maybe this is a bad idea for some reason, but I'll throw it out there: What about `element-scoped --foo` or `property-scoped [index-scoped] --foo`? In a way I find that reads more naturally, like an adjective modifying the dashed-ident. -- GitHub Notification of comment by kbabbitt Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13601#issuecomment-4145658886 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 27 March 2026 22:18:02 UTC