Web-mobile : having a @media on script ?

Olivier GENDRIN wrote:
> Yesterday, Charles McCathieNevile gave a talk in Paris [1] about the
> web mobile. During the QA session, we came to talk about
> (java)scripts, and the conclusion was that some scripts where intended
> to be used with media=screen, and where useless/counterproductive with
> media=handheld.
> 
> What do think of having :
> - a media property on script ?

What happens if the same document is being rendered to multiple media at
once?  Or switches media during the lifetime of the document?

> - or a window.media value accessible for javascript ?

Same questions apply here, I would think.

-Boris

Received on Monday, 13 October 2008 01:38:36 UTC