Re: [csswg-drafts] [css-values-5] Caching CSS random() values in custom functions (#13661)

Hm. The above would actually still link the values across function invocations, in typed args/locals. That is, calling `--foo()` twice would make the argument use `ua---foo()---arg-1` both times, resulting in the same value. Would it make more sense to have it be distinct each time? The function processing model works by evaluating styles on a hypothetical child element; if we rely on `element-scoped` to handle that (being distinct both from the applying element and distinct across invocations), then we don't need to include the function name in the random-ua-ident; we'd just need the arg name/index to make the values distinct within a function, as usual.

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


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

Received on Wednesday, 15 April 2026 21:50:43 UTC