- From: Cameron McCormack via GitHub <sysbot+gh@w3.org>
- Date: Wed, 07 Nov 2018 22:30:57 +0000
- To: public-css-archive@w3.org
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