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

Re: @else in Media Queries

From: Simon Pieters <simonp@opera.com>
Date: Wed, 22 Jun 2016 00:12:56 +0200
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "Florian Rivoal" <florian@rivoal.net>, "Mark Brown" <mark@mercurylang.org>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.yjfhbuinidj3kv@simons-mbp>
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

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:59 UTC