W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2008

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

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 14 Nov 2008 21:18:25 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0811142103100.1041@hixie.dreamhostps.com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:07 UTC