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

Re: [cssom-view] comments on StyleMedia interface

From: Luiz Agostini <luiz.agostini@openbossa.org>
Date: Wed, 18 Aug 2010 13:40:20 -0300
Message-ID: <AANLkTi=Au--wCySeq6tCnYVnWHWe8grMYCdBqJ+jSaWy@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: Simon Fraser <smfr@me.com>, "L. David Baron" <dbaron@dbaron.org>, www-style@w3.org
It looks quite nice.

I still think that there is no point on not accepting lists of media
queries. It would be nice to accept exactly what @media rule accepts and I
see no practical reason to restrict it to single queries.

Would listener uniqueness be guaranteed per MediaQuery object?

What would be the order in which the listeners would be called? is it
specified? If it is then the order in which the listeners are added/removed
may matter.


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

> On Wed, 18 Aug 2010 16:34:02 +0200, Simon Fraser <smfr@me.com> wrote:
>> I don't understand this question. You need to call removeListener() on the
>> same MediaQuery object you called addListener() on. If you call
>> addListener() twice with the same listener on the same MediaQuery, then I
>> don't think it really matters which order they are removed in.
> Oops. My bad.
>  styleMedia/StyleMedia will be nuked.
>> What happens to styleMedia.type?
> It is probably not useful enough to have. We have specific events for
> printing defined in HTML5 and otherwise "screen" is effectively the only
> media type. Opera supports "projection" but it appears that is going away in
> favor of the fullscreen API proposal from Mozilla. There was "handheld" at
> some point, but supporting that breaks more sites than it fixes. And you can
> always hack support for this using the matchMediaQuery() API (although it
> will give you quite a few calls).
> --
> Anne van Kesteren
> http://annevankesteren.nl/
Received on Wednesday, 18 August 2010 16:40:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:49 UTC