[whatwg] attribute "media" on "script" element

On Fri, 14 Nov 2008, Filippo Levizzani wrote:
> 
> Would it be possible to have "media" attribute in the SCRIPT element? 
> Addmitted vaues would be the same of STYLE element (all, screen, print, 
> handheld ...)

This doesn't really work because media queries are supposed to change 
dynamically. The real solution here is a combination of XBL2 and a new API 
in the CSSOM-View draft (window.media).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 14 November 2008 13:18:25 UTC