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

Is there a use case where an author wants to share the key but not the limits? If there is none, I believe `random()` should just take limits (or a list of values) as arguments _or_ a single dashed-ident key weide meaning was specified in a new at-rule. 

~~~~ css
@random --a; /* default, each invocation is independent */

@random --e per element;
@random --p per property;
@random --r per ruleset;
@random --v per value;

@random --x from 0 to 1;
@random --l from 1px to 1rem;

@random <integer> --n from 1 to 6;

@random --i from (red, green, blue);
~~~~



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


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

Received on Tuesday, 3 March 2026 15:25:47 UTC