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

OK, so `property-shared` means shared in that property, across different indices and elements. And `--foo` subdivides this sharedness.

- `random(1, 10)`: Varies across elements, properties and indices. Not shared.
- `random(--foo, 1, 10)`: Doesn't vary. Shared across different elements, properties and indices.
- `random(property-shared, 1, 10)` and `random(--foo property-shared, 1, 10)`: Varies across properties. Shared across elements and indices.
- `random(element-shared, 1, 10)` and `random(--foo element-shared, 1, 10)`: Varies across elements. Shared across properties and indices.

The effect of adding an identifier seems inconsistent to me: with `property-shared` or `element-shared` it just subdivides sharedness without affecting the behavior, while otherwise it adds sharedness.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13132#issuecomment-3847113820 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 12:18:15 UTC