W3C home > Mailing lists > Public > www-style@w3.org > December 1997

Does an @media cascade with the generic sheet?

From: Neil St.Laurent <neil@bigpic.com>
Date: Thu, 4 Dec 1997 13:42:17 -0600
Message-Id: <199712042033.NAA01598@underworld.bigpic.com>
To: Chris Lilley <Chris.Lilley@sophia.inria.fr>
CC: www-style@w3.org
Does an @media style sheet cascade with all of those rules outside of 
the @media declaration?

If an @font-face with the same name is declared aboth inside an 
@media and outside an @media which is used?  I know this is likely 
the one inside, but the standard doesn't specifically address certain 
issues like this.

Why is @import not available inside an @media?  It would be very 
convenient for parts of the style sheet that remain the same.
Or is this because the imported style sheet would be required to be 
basic (without @media) and thus the import a misnomer.

Here is a possible suggestion:

consider @incmedia that allows you to include another @media 
declaration as part of the current set:

@media common   { color: red;
     background: green; }

@media screen { @incmedia common;
   font-size: 14pt; }

@media overhead { @incmedia common;
   font-size: 24pt; }

In CSS2 I'm to assume a UA is supposed to use the "screen" media 
declaration as opposed the generic one?
__
| Mortar: Advanced Web Development <http://mortar.bigpic.com/>
| Neil St.Laurent                  <mailto:stlaurent@bigpic.com>
| Big Picture Multimedia
Received on Thursday, 4 December 1997 15:36:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:53 GMT