Re: @else in Media Queries

> On Jun 22, 2016, at 07:12, Simon Pieters <simonp@opera.com> wrote:
> 
> On Tue, 21 Jun 2016 19:22:52 +0200, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> 
>> I'd strongly prefer not having the OM be gratuitiously different from
>> the syntax. That's just confusing for everyone, and makes it more
>> confusing to work with, not less - how do you add an @else rule to the
>> document via the OM? Can you just append it to the stylesheet and
>> magic happens, or do you need to get that final conditional rule,
>> chase its .else pointers until you hit a null, then set it to your new
>> rule?
> 
> Yeah, I suppose it would indeed be confusing.

I don't know. @else isn't an autonomous construct, so I don't feel strongly about supporting the ability to "just append it to the stylesheet". An @else is part of a conditional rule chain, and I don't find it particularly weird to need to walk the chain to be able to append something to it.

 - Florian

Received on Wednesday, 22 June 2016 02:08:59 UTC