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

Re: [cssom-view] comments on StyleMedia interface

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 18 Aug 2010 16:50:51 +0200
To: "Simon Fraser" <smfr@me.com>
Cc: "L. David Baron" <dbaron@dbaron.org>, www-style@w3.org
Message-ID: <op.vhm160ru64w2qv@anne-van-kesterens-macbook-pro.local>
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 14:51:38 GMT

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