- From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
- Date: Mon, 07 Jan 2019 12:52:49 +0000
- To: public-css-archive@w3.org
It feels like @heycam's suggestion would also be gentler on the OM than an `@if {} @else {}` Converting my earlier example: ``` @if media((width >= 400px) and (pointer: fine)) and supports(display: flex) { ... } @else-if supports((caret-color: pink) or (background: double-rainbow()){ ... } @else { ... } ``` becomes ``` @switch { media((width >= 400px) and (pointer: fine)) and supports(display: flex) { ... } supports((caret-color: pink) or (background: double-rainbow()){ ... } default { ... } } This seems quite workable to me. ``` -- GitHub Notification of comment by frivoal Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/112#issuecomment-451925443 using your GitHub account
Received on Monday, 7 January 2019 12:52:50 UTC