@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.
Status
Limited availability
MDN documentation
Specifications
Browser support
- Chrome 139 Released on 2025-08-05
- Chrome Android 139 Released on 2025-08-05
- Edge 139 Released on 2025-08-07
- Firefox ❌ Vendor position : unknown
- Firefox for Android ❌ Vendor position : unknown
- Safari ❌ Vendor position : unknown
- Safari on iOS ❌ Vendor position : unknown
Usage (according to Chrome Platform Status)
~0.003% of page loads. More data at chromestatus.com.Web Platform Tests (WPT)
View the latest WPT test results for this featureDeveloper votes
Do you need this feature?
Let us know by leaving a 👍 reaction on the feedback issue. Don't forget to also leave a comment explaining your specific use case.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist