---
id: "function"
kind: "web-feature"
canonical: "https://timetostable.com/feature/function"
baseline: "limited"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# @function (`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.

- **Group**: CSS
- **Baseline**: Limited Availability
- **Specification**: https://drafts.csswg.org/css-mixins-1/#function-rule
- **Constituent BCD keys**: 12

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Chrome | 139 | 2025-08-05 |
| Chrome Android | 139 | 2025-08-05 |
| Edge | 139 | 2025-08-07 |

