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

# if() (`if`)

The if() CSS function is an inline conditional value that returns a value based on a set of conditions.

- **Group**: CSS
- **Baseline**: Limited Availability
- **Specification**: https://drafts.csswg.org/css-values-5/#if-notation
- **Constituent BCD keys**: 1

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Chrome | 137 | 2025-05-27 |
| Chrome Android | 137 | 2025-05-27 |
| Edge | 137 | 2025-05-29 |

