<dashed-function>

Experimental

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.

Quick example

/* Future CSS: Using a custom dashed-function */
.element {
  --custom-anim: --my-logic(500ms);
}

<dashed-function> Browser Support

Limited availability 67% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Not ready for production without a fallback.

139+
139+
ESC