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

Re: @else in Media Queries

From: Sebastian Zartner <sebastianzartner@gmail.com>
Date: Sat, 11 Jun 2016 10:49:32 +0200
Message-ID: <CAERejNZTgOQOMO4csq0Mz7g4MsyvX_XwmmCFTXpk7fqiCCsRWQ@mail.gmail.com>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
On 11 June 2016 at 09:37, Daniel Glazman
<daniel.glazman@disruptive-innovations.com> 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...

Yes, and what's the problem with that? I mean, when you put something
into the @else block it's meant to correlate to the media query. If
the media query is invalid, the @else block should not be applied.

Sebastian
Received on Saturday, 11 June 2016 08:50:20 UTC

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