- From: Jonathan Neal <jonathantneal@hotmail.com>
- Date: Sun, 12 Jun 2016 21:05:31 -0700
- To: W3C www-style mailing list <www-style@w3.org>
- Message-ID: <COL131-W843CC48681EA60314ECCBBA4530@phx.gbl>
For those who like to explore ideas by fiddling with them. http://jonathantneal.github.io/postcss-at-else/ Cheers,Jonathan > From: mark@mercurylang.org > Date: Mon, 13 Jun 2016 10:50:34 +1000 > To: www-style@w3.org > Subject: Re: @else in Media Queries > > On Sat, Jun 11, 2016 at 7:24 PM, Daniel Glazman > <daniel.glazman@disruptive-innovations.com> wrote: > > On 11/06/2016 09:54, Mark Brown wrote: > > > >> Has anyone considered something like > >> > >> @switch { > >> @case C1 { ... } > >> @case C2 { ... } > >> @default { ... } /* optional */ > >> } > > > > /me faints. > > I'm not in a position to judge whether the problem with chained rules > that you have raised is serious enough to preclude their use. The > example just illustrates that that wouldn't prevent some other form of > multi-way branch being added. > > Hopefully your objection isn't just to the choice of names. It could > just as easily be: > > @first-of { /* use the first non-discarded rule */ > @when C1 { ... } > @when C2 { ... } > ... > @otherwise { ... } /* optional */ > } > > Mark >
Received on Monday, 13 June 2016 04:06:02 UTC