Re: @else in Media Queries

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?

Mark

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