W3C home > Mailing lists > Public > www-style@w3.org > April 2008

Re: [css3-mediaqueries] no list of allowed media types

From: Stewart Brodie <stewart.brodie@antplc.com>
Date: Mon, 7 Apr 2008 11:00:04 +0100
To: www-style@w3.org
Message-ID: <3886d22441f68a2e25b9354e852802d457722f81@localhost>

fantasai <fantasai.lists@inkedblade.net> wrote:

> since media types are defined to be mutually exclusive, a UA can only
> claim to match one media type (presumably a known one).

I've found that I cannot enforce that consistently and must accept multiple
media types.  Specifically, if our browser chooses to only permit the "tv"
media type, then we lose all the style that is specified for "screen".
Whilst this is only a problem on a few sites, they always seem to be on the
ones important to our customers :-/

I have toyed with the idea of each document starting life accepting "screen"
until it come across a MQ that uses the "tv" media type and at that point,
switching media type to tv, thus disabling all the screen stylesheets.  This
is all somewhat hacky, though.

Stewart Brodie
Software Engineer
ANT Software Limited
Received on Monday, 7 April 2008 10:01:22 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:35 UTC