Re: [cssom-view] comments on StyleMedia interface

I understood from previous messages that the MediaQueryListListener would
receive a MediaQueryList object instead of a boolean value.

2010/8/25 Anne van Kesteren <annevk@opera.com>

> On Wed, 18 Aug 2010 19:02:04 +0200, L. David Baron <dbaron@dbaron.org>
> wrote:
>
>> I don't see any reason to restrict it to single queries; I'd prefer
>> lists.
>>
>
> Lists it is. Please all review:
>
> http://dev.w3.org/csswg/cssom-view/#the-mediaquerylist-interface
>
>
> I decided to give my names one more try (now it's lists), but I can change
> them again if you do not agree with my reasoning.
>
> matchMedia() -- compatible with how we name media="" and @media and shorter
> than matchMediaQueryList(). I suppose matchStyleMedia() could work too
> potentially.
>
> MediaQueryList -- could not think of a better name for this.
>
> media -- compatible with how we name media="" and @media.
>
> matches -- compatible with the matchesSelector() proposal, and with how
> "matches" is typically used in drafts.
>
> addListener() / removeListener() are not enforcing uniqueness.
> removeListener() therefore removes the last as there are ways you can notice
> the difference and I think this is what DOM Events does.
>
>
>
> --
> Anne van Kesteren
> http://annevankesteren.nl/
>

Received on Wednesday, 25 August 2010 17:42:44 UTC