Re: @else in Media Queries
Mark Brown <[email protected]>
| Newsgroups | gmane.comp.web.css.general |
|---|---|
| Message-ID | <CAM4AczBKx4oTGZzs0iWgKBupu3DwLbzeNspmFt4B11_s6fOd+w@mail.gmail.com> |
On Sat, Jun 11, 2016 at 5:42 PM, Daniel Glazman <[email protected]> wrote: > On 11/06/2016 09:34, Sebastian Zartner wrote: > >> Coming back to this option, why is nesting the @else rule that bad? Sure, in >> other languages you have it outside of the first block, but it clearly >> connects both visually and avoids the problems of a dangling @else >> block. > > Because an invalid MQ would trash the whole thing including the nested > @else, per error handling rules... Has anyone considered something like @switch { @case C1 { ... } @case C2 { ... } @default { ... } /* optional */ } ? Mark