CSS if() functionExternal Link

Baseline status unknown

This feature is not covered by web-features yet, so its Baseline status is unknown.

The if() CSS function allows different values to be set for a property depending on the result of a conditional test. The test can be based on a style query, a media query, or a feature query.

IE
Edge
Firefox
Chrome
Safari
Safari iOS
Opera Mini
Chrome Android
Android Browser
Samsung Internet
Globals: 71.16% of all users can use this feature, 71.16% fully supported, 0% partially supported
✓Supported
✗Not supported
Partial support