CSS @when / @else conditional rules

- WD

Syntax allowing CSS conditions (like media and support queries) to be written more simply, as well as making it possible to write mutually exclusive rules using @else statements.

Chrome

  1. 4 - 123: Not supported
  2. 124: Not supported
  3. 125 - 127: Not supported

Edge

  1. 12 - 122: Not supported
  2. 123: Not supported

Safari

  1. 3.1 - 17.3: Not supported
  2. 17.4: Not supported
  3. 17.5 - TP: Not supported

Firefox

  1. 2 - 124: Not supported
  2. 125: Not supported
  3. 126 - 128: Not supported

Opera

  1. 9 - 108: Not supported
  2. 109: Not supported

IE

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

Chrome for Android

  1. 123: Not supported

Safari on iOS

  1. 3.2 - 17.3: Not supported
  2. 17.4: Not supported
  3. 17.5: Not supported

Samsung Internet

  1. 4 - 23: Not supported
  2. 24: 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. 123: Not supported

Firefox for Android

  1. 124: 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:
Blog post: Extending CSS when/else chains: A first look
Chrome support bug
WebKit support bug
Firefox support bug