Re: [csswg-drafts] [css-values-5] The `<random-value-sharing>` options for `random()` are confusing (#13132)

Tho I suppose we *could* make `property-shared` remove the usage index from the property+usage key, so *all* uses within a given property name were identical by default. That's probably a bit more intuitive with the explanation.

* `property-shared` means that the random value is shared by all random()s in that property name, across different elements. Different properties will have a different value.
* `element-shared` means that the random value is shared by all random()s on that element, across different property names. Different elements will have different value.
* `element-shared property-shared` means that the random value is shared all random()s.
* Adding a `--foo` to any of these lets you subdivide the sharing, so only things with matching idents get the same value, within the existing grouping.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13132#issuecomment-3850079009 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 4 February 2026 22:33:14 UTC