css-tricks.com
CSS Switch-Case Conditions
7
CSS is yet to have a switch rule or conditional if, aside from the specific nature of @media queries and some deep trickery with CSS custom properties. Read full article