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

Re: @else in Media Queries

From: Mark Brown <mark@mercurylang.org>
Date: Sat, 11 Jun 2016 17:07:47 +1000
Message-ID: <CAM4AczBwcLJ6tuoosyL5ax9-kAcUkZQ7zR_Gogu0Y937xg4TLg@mail.gmail.com>
To: www-style list <www-style@w3.org>
On Sat, Jun 11, 2016 at 4:34 PM, Daniel Glazman
<daniel.glazman@disruptive-innovations.com> wrote:
> On 10/06/2016 22:12, Tab Atkins Jr. wrote:
>> What new constraints are needed?  Are you talking about just in
>> editors?  The OM doesn't need to do anything special; it can handle
>> stray @else just fine.
> Two consecutive rules in a valid sheet's OM: a @media followed by a
> @else. Through OM, @media is removed, stylesheet is now invalid because
> a standalone @else...

Why do you say the stylesheet is invalid? If an at-rule is invalid it
is discarded, but I don't see where it says that it makes the
stylesheet invalid.

>>>       - can't always express the @else case by a MQ
>> Why is this a con?
> Turn a standalone @else in a valid @media.

Why does it have to be @media? It's much easier to turn it into a
@when, isn't it?

Received on Saturday, 11 June 2016 07:08:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:03 UTC