Re: @else in Media Queries
Florian Rivoal <[email protected]> Wed, 22 Jun 2016 11:08:31 +0900
| Newsgroups | gmane.comp.web.css.general |
|---|---|
| Message-ID | <[email protected]> |
> On Jun 22, 2016, at 07:12, Simon Pieters <[email protected]> wrote: > > On Tue, 21 Jun 2016 19:22:52 +0200, Tab Atkins Jr. <[email protected]> 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