W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2004

[whatwg] Re: media types

From: Malcolm Rowe <malcolm-what@farside.org.uk>
Date: Mon, 26 Jul 2004 12:43:08 +0100
Message-ID: <courier.4104EE4C.00002459@mail.farside.org.uk>
Mark Schenk writes:
> Therefor I would like to suggest a read-only "window.medium" set to a
> media type ("screen" | "print" | "projection" | "tv" | "handheld" |
> "speech" etc).

Not a bad idea, I suppose, but I'd like to understand more about the use 
case for this kind of functionality. What *behaviour* (not presentation, 
since that would be CSS) do you expect you'd change based on the active 
media type? 

[Hmm, you could probably emulate this now: by using CSS's @media blocks, and 
then detecting what style rules were active from script.] 

Secondly, is 'the current media type' only ever a single value, or can more 
than one media type be active at one time (e.g., 'projection' + 'screen'?). 

Finally, 'window.medium' is a really bad choice for the name. I know that 
'medium' is the right word (if only one can be active), but no-one's going 
to associate 'medium' with 'active media type'. 'mediaType' would be better. 

Received on Monday, 26 July 2004 04:43:08 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:35 UTC