W3C home > Mailing lists > Public > www-style@w3.org > January 1998

Re: Same source multiple times with @import

From: Daniel Hale <dhale@pobox.com>
Date: Fri, 2 Jan 1998 17:59:50 -0800 (PST)
Message-Id: <199801030159.RAA02418@wolfenet.com>
To: <neil@bigpic.com>, <www-style@w3.org>
Here's how I read it. Please correct me if I'm wrong.

  v.css    P is green
  u.css    P is red (because red came second)
  t.css    P is green (because v.css came second
                        and in it P is green)

Does @import give a rule more weight in the cascade? Have I overlooked 
this?

Dan Hale
dhale@pobox.com


>Given t.css:
>
>@import (u.css);
>@import (v.css);
>
>and u.css:
>
>@import (v.css);
>
>p { color: red; }
>
>and v.css:
>
>p { color: green; }
>
>Should the color of p be red or green?
>
>I will argue that it should be "red" because sheets are to be 
>processed in order they are found (recursively into files) and if the 
>same sheet is included twice the second inclusion is ignored.
Received on Friday, 2 January 1998 21:00:23 GMT

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