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

Re: [cssom-view] addMediumListener / removeMediumListener

From: Luiz Agostini <luiz.agostini@openbossa.org>
Date: Thu, 27 May 2010 12:04:54 -0300
Message-ID: <AANLkTin-H6xVoxdfX2xG1snhYKuqVDM5VHl3_YNBErzB@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: www-style@w3.org, marcosc@opera.com
2010/5/27 Anne van Kesteren <annevk@opera.com>

> On Wed, 26 May 2010 17:10:04 +0200, Luiz Agostini <
> luiz.agostini@openbossa.org> wrote:
>
>> Could we use the names addMediaListener, removeMediaListener and
>> matchMedia and accept media query lists?
>>
>
> I rather not change the name of matchMedium() yet again. Unless you get
> buy-in from Simon Fraser somehow :-) Making everything accept lists could
> work though.


ok. matchMedium accepts lists in current webkit implementation.


>
>
>
>  If we do that we will need to specify how to compare media query lists. A
>> preliminary suggestion is:
>>
>
> Can't we just order them in specified order? That's how it currently works.
> Though I guess it would be nice if "all, not all" and "not all, all" are the
> same...
>

The idea is to consider equal, or equivalent, two lists that will always
produce the same value in an evaluation. For that it is needed to ignore
malformed and duplicated queries and to ignore the order of the queries in
the list.


>
>
> At this point some thoughts from implementors would be nice.


I am working in webkit implementation and plan to submit code for review
today in the afternoon (GMT -3).
https://bugs.webkit.org/show_bug.cgi?id=37205


>
>
>
> --
> Anne van Kesteren
> http://annevankesteren.nl/
>
Received on Thursday, 27 May 2010 15:05:27 GMT

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