<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.

/* Usage Example */
/* Future CSS: Using a custom dashed-function */
.element {
  --custom-anim: --my-logic(500ms);
}
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+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC