*Summary:*
The CSS <https://drafts.csswg.org/css-values-5/#ident>*ident() 
<https://drafts.csswg.org/css-values-5/#ident>* arbitrary substitution 
function <https://drafts.csswg.org/css-values-5/#ident> allows authors to 
dynamically construct identifiers by concatenating other values, and can be 
used wherever an *<ident>* is accepted. For example:

   - *animation-name: *ident("easing-type-" random(1, 5));
   - *view-timeline-name: *ident("--tl-" sibling-index());
   - *color: *var(ident("--color-level-" attr(data-level), black);

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

(Please see this excellent blog post <https://brm.us/ident> by Bramus for 
additional details and examples.)

*Bug:*
Bug 1942078 - [css-values] Implement ident() arbitrary substitution function 
<https://bugzilla.mozilla.org/show_bug.cgi?id=1942078>

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

*Standards Body: *
CSSWG / W3C

*Platform Coverage: *
All

*Preference:*
layout.css.ident-function.enabled

*DevTools Bug: *
(TBA)

*Extensions Bug: *
N/A

*Use Counter: *
N/A

*Standards-Positions Discussion: *
(none found)

*Other Browsers:*
- Blink: Unsupported
- WebKit: Previewed in Safari Technology Preview 251

*web-platform-tests:*
https://wpt.fyi/results/css/css-values?label=master&label=experimental&aligned&q=ident-function

-- 
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/2db75259-8472-4888-9c6f-a78ebc9e5fe1n%40mozilla.org.

Reply via email to