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

Ian Hickson ian at hixie.ch
Fri Nov 14 13:18:25 PST 2008

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.   `._.-(,_..'--(,_..'`-.;.'

More information about the whatwg mailing list