BASELINE NowYouCanUse.com
Limited Availability CSS

@function

The @function CSS at-rule defines a custom function that takes CSS values or custom properties as arguments, and returns a CSS value. It can be based on conditional logic such as by using the @media at-rule.
Baseline Status: This feature is currently Limited (not yet Baseline). Latest engine implementation shipped on Aug 7, 2025.
Desktop Browser Engine Support
Google Chrome
139
Supported
Mozilla Firefox
—
Unsupported
Apple Safari
—
Unsupported
Microsoft Edge
139
Supported
Mobile Browser Engine Support
Chrome Android
139
Firefox Android
—
Safari iOS
—
Specifications and References
id: function