W3C home > Mailing lists > Public > www-style@w3.org > July 2010

Re: [css3-mediaqueries][cssom] Empty media queries in stylesheets and the DOM

From: L. David Baron <dbaron@dbaron.org>
Date: Tue, 13 Jul 2010 08:08:55 -0700
To: Anne van Kesteren <annevk@opera.com>
Cc: Sylvain Galineau <sylvaing@microsoft.com>, www-style list <www-style@w3.org>
Message-ID: <20100713150855.GA28340@pickering.dbaron.org>
On Wednesday 2010-05-12 11:30 +0200, Anne van Kesteren wrote:
> That seems like a sensible change. So
> 
>   screen and (foobar), print and (foobar)
> 
> turns into
> 
>   not all, not all

Yes.

> Would appendMedium() still "ignore" the call if the parsed media
> query is ignored, as currently defined? I guess it might make more
> sense if it appends "not all" in that case.

I think it might -- it would save authors having to check whether it
actually increased the count as far as dealing with management of
the list.  But I don't feel strongly.

> When you serialize a
> list of media queries should it return "all" if the list is empty?
> Or just the empty string?

I tend to think the empty string is better.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Tuesday, 13 July 2010 15:09:48 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:29 GMT