<dashed-function>
An experimental type of CSS function name that starts with two dashes (like '--foo()'). It's intended to be used for custom, user-defined functions in the future.
This is an experimental technology. The syntax and behavior are still subject to change.
Syntax
/* Usage Example */
/* Future CSS: Using a custom dashed-function */
.element {
--custom-anim: --my-logic(500ms);
}
<dashed-function> Browser support
Limited availability
Since
2020 67% global usage
This feature is not Baseline because it does not work in some of the most widely-used browsers.
139+
139+