Re: [csswg-drafts] [mediaqueries][css-conditional] else (#112)

Generally speaking I'd prefer something that is more like switch/case with guards than if/else to exist in css. 

Example without guards:

```css
@case (@supports(display: grid), @supports(display: flex)) {
 (TRUE, TRUE) -> {
   body { display: grid }
 },
 (_, TRUE) {
   body { display: flex }
 },
},
```

Long nested chains of if/else without exhaustiveness, feel generally bad to me.

-- 
GitHub Notification of comment by inoas
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/112#issuecomment-1076453463 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 23 March 2022 14:38:59 UTC