Re: @else in Media Queries

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.

> Again, this is not a "problem" in any other language. It's not a
> realistic editting hazard, and doesn't need special treatment in CSS.
> People can handle sibling rules being implicitly linked, I promise.
>
> ~TJ


-- 
Simon Pieters
Opera Software

Received on Tuesday, 21 June 2016 22:13:31 UTC