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

Re: @else in Media Queries

From: Florian Rivoal <florian@rivoal.net>
Date: Wed, 22 Jun 2016 11:08:31 +0900
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, Mark Brown <mark@mercurylang.org>, "www-style@w3.org" <www-style@w3.org>
Message-Id: <9BBD839E-8FBD-4FE8-A578-BA688E9A6D91@rivoal.net>
To: Simon Pieters <simonp@opera.com>

> 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:47 UTC