You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-values-5] Should it be possible to use random-item() as a registered property initial value? #14926
[css-values-5] Allow if() in descriptors #11941 - Resolved to come back to it later about allowing if() in descriptors, maybe more generally for expanding (some?) substitution functions to (some?) descriptors.
I wanted to open a new issue specific to random-item() and initial-value because it touches on / is dependent on the above two separate issues. Essentially, should this property registration below work?
To me, it seems like this could be useful, but it requires:
Changing descriptors (or initial-value specifically) to perform substitution at some point. It seems like there was some consensus that having if(...) available in descriptors would be useful, so maybe this will happen.
Consider random-item(<dashed-ident>, ...) to be computationally independent. I think it should be, because the value can never change and it only relies on the value itself (the <dashed-ident>) and on "global" information (the Document identifier).
Activity
kbhomes commentedon Dec 2, 2026
(This came up on https://bugzilla.mozilla.org/show_bug.cgi?id=2092915#c6, cc: @dletorey)