W3C home > Mailing lists > Public > www-style@w3.org > June 2016

Re: @else in Media Queries

From: Florian Rivoal <florian@rivoal.net>
Date: Sat, 11 Jun 2016 18:30:20 +0900
Cc: www-style@w3.org
Message-Id: <272B2C30-BCF6-48F8-817C-78A20A8584A0@rivoal.net>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>

> On Jun 11, 2016, at 18:24, 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 don't see why. This seems to be a honest attempt at dealing with your problem of stray things being left behind. Whether the syntax is palatable is a subjective question, but it looks like this would deal with what you didn't like about @else.

 - Florian
Received on Saturday, 11 June 2016 09:30:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:47 UTC