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

Re: CSS WG comments on View Modes Media Feature spec

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 16 Mar 2010 21:23:49 +0100
To: "Marcos Caceres" <marcosc@opera.com>
Cc: "Daniel Glazman" <daniel.glazman@disruptive-innovations.com>, public-webapps@w3.org, www-style@w3.org, "Robin Berjon" <robin@berjon.com>
Message-ID: <op.u9of9ztv64w2qv@annevk-t60>
On Tue, 16 Mar 2010 20:17:39 +0100, Marcos Caceres <marcosc@opera.com>  
wrote:
> Ok, fair enough - CSSOM might not be the place. Is there a generic CSS  
> mechanism/API to detect query changes?

There is not. There are specific APIs for some features (e.g. the resize  
event which works for 'width' and 'height'). There is also an API that  
allows you to figure out whether a media query is "currently" applicable  
(window.styleMedia.matchMedium).


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Tuesday, 16 March 2010 20:24:38 GMT

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