Thanks to visit codestin.com
Credit goes to caniuse.com

CSS if() function

- WD

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.

Chrome

  1. 4 - 136: Not supported
  2. 137 - 142: Supported
  3. 143: Supported
  4. 144 - 146: Supported

Edge

  1. 12 - 136: Not supported
  2. 137 - 142: Supported
  3. 143: Supported

Safari

  1. 3.1 - 26.1: Not supported
  2. 26.2: Not supported
  3. 26.3 - TP: Not supported

Firefox

  1. 2 - 145: Not supported
  2. 146: Not supported
  3. 147 - 149: Not supported

Opera

  1. 9 - 120: Not supported
  2. 121: Supported
  3. 122 - 124: Not supported
  4. 125: Not supported

IE

  1. 5.5 - 10: Not supported
  2. 11: Not supported

Chrome for Android

  1. 143: Supported

Safari on iOS

  1. 3.2 - 26.1: Not supported
  2. 26.2: Not supported
  3. 26.3: Not supported

Samsung Internet

  1. 4 - 28: Not supported
  2. 29: Not supported

Opera Mini

  1. all: Not supported

Opera Mobile

  1. 10 - 12.1: Not supported
  2. 80: Not supported

UC Browser for Android

  1. 15.5: Not supported

Android Browser

  1. 2.1 - 4.4.4: Not supported
  2. 143: Supported

Firefox for Android

  1. 146: Not supported

QQ Browser

  1. 14.9: Not supported

Baidu Browser

  1. 13.52: Not supported

KaiOS Browser

  1. 2.5: Not supported
  2. 3: Not supported
Resources:
Firefox support bug 1981485
MDN Web Docs - if()
Minimal vanilla JavaScript polyfill and PostCSS plugin
Firefox request for position
WebKit request for position