Re: [csswg-drafts] [mediaqueries][css-conditional] else

Another option if we want to avoid the awkwardness of where the `@else` or `@not` would go is to have an at rule that contains all of the conditions to check. Strawperson:

```
@switch media {
  (min-width: 800px) { /* rules */ }
  (min-width: 600px) { /* rules */ }
  default { /* rules */ }
}

@switch supports {
  (color: rainbow) { /* rules */ }
  default { /* rules */ }
}
```

Not sure how well that works for backwards compat.

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

Received on Wednesday, 7 November 2018 22:30:59 UTC