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

[whatwg] Re: media types

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 21 Aug 2004 23:49:58 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0408212348080.20869@dhalsim.dreamhost.com>
On Mon, 26 Jul 2004, Malcolm Rowe wrote:
> 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?

You could change, e.g., whether to display an animated chart on a 
<canvas>, or whether to display a static chart (when printing).

> 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'?). 

CSS defines it as impossible for there to be two modes on one canvas 
active at any one time, so window.mediaMode can only ever be one value.

> 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. 

I agree; I considered mediaType but that's often used to mean MIME type, 
which is why I instead called it mediaMode.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 21 August 2004 16:49:58 UTC

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