Re: CSS WG comments on View Modes Media Feature spec

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 UTC