Re: Proposal, default media is NOT @media all

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

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