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

Re: Proposal, default media is NOT @media all

From: Bert Bos <Bert.Bos@sophia.inria.fr>
Date: Fri, 12 Dec 1997 16:09:10 +0100 (MET)
Message-Id: <199712121509.QAA08968@mygale.inria.fr>
To: www-style@w3.org
Neil St.Laurent writes:
 > I'm currently believing that anything in a declaration that is not 
 > inside an @media block is considered to be part of the "all" media 
 > block?  If I am mistaken please correct me.

That is correct.

 > I would prefer that this NOT be the case for the purpose of writing 
 > cross-ed CSS1 / CSS2 style sheets.  This way the rules as meant for 
 > CSS1 can appear outside the "@media all" block and the rules meant for CSS2 
 > can appear inside the "@media all" block.

But what should a CSS2 application do with rules outside any @media?
The principle is that every CSS1 style sheets is also a CSS2 style

You can indeed use the trick with @media to create two styles in one
file, but you have to make sure all rules are overridden in the @media
part, and that the @media part comes last.

  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos/                              W3C/INRIA
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 93 65 76 92            06902 Sophia Antipolis Cedex, France
  +33 (0)4 92 38 76 92 (<--- after 5 Jan 1998)
Received on Friday, 12 December 1997 10:09:32 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:46 UTC