*Summary:*
The CSS *random-item()* arbitrary substitution function 
<https://drafts.csswg.org/css-values-5/#random-item> selects a random value 
from the provided list of options using the given random key. For example, 
*random-item(element-scoped, 
red, green, blue)* will be substituted as one of the three colors, using 
the element as the source of randomness.

We intend to prototype an implementation of this function behind the 
*layout.css.random-item.**enabled* pref.

*Bug:*
Bug 2072591 - Implement CSS random-item() function 
<https://bugzilla.mozilla.org/show_bug.cgi?id=2072591>

*Specification: *
https://drafts.csswg.org/css-values-5/#random-item

*Standards Body: *
CSSWG / W3C

*Platform Coverage: *
All

*Preference:*
layout.css.random-item.enabled

*DevTools Bug: *
Bug 2092916 - [META][css-random-item] Support CSS random-item() in devtools 
<https://bugzilla.mozilla.org/show_bug.cgi?id=2092916>

*Extensions Bug: *
N/A

*Use Counter: *
N/A

*Standards-Positions Discussion: *
(none found)

*Other Browsers:*
- Blink: Unsupported
- WebKit: Previewed in Safari Technology Preview 251 
<https://webkit.org/blog/18194/release-notes-for-safari-technology-preview-251/>
 
and slated for Safari 27.3 
<https://developer.apple.com/documentation/safari-release-notes/safari-27_3-release-notes#:~:text=Added%20support%20for%20the%20random-item()%20function.%20(181816677>

*web-platform-tests:*
https://wpt.fyi/results/css/css-values?q=random-item

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/38d110cd-6f1b-4ee5-b6cc-5cfa8ed6ec57n%40mozilla.org.

Reply via email to