[thelist] Netscape... why?
Martin Burns
martin at easyweb.co.uk
Sat Jun 8 08:51:00 CDT 2002
On Saturday, June 8, 2002, at 09:37 am, Chris Kaminski wrote:
>> It can't be done with @import unlwss you disregard IE 5 Mac and IE 4
>> Win, or disredard IE 5 and 5.5 Win ... if there's something that
>> will simulate the effect with one stylesheet in all browsers that can
>> do it, I don't know what it is.
>
> Pardon me for jumping in here, but the above isn't accurate or is at
> least
> incomplete. Observe:
>
> <link rel="stylesheet" type="text/css" media="screen"
> href="everyone.css" />
>
> <link rel="stylesheet" type="text/jsss" media="screen"
> href="nn4only.js" />
>
> <style type="text/css" media="screen">
>
> @import: url(ie4AndUpGeckoOpera.css);
> @import: "ie5AndUpGeckoOpera.css";
>
> </style>
Here's a thought. IE4.5/Mac obeys @import syntax from within an embedded
stylesheet.
Does it obey @import syntax from an external stylesheet called from
<link rel>?
Does it obey @import syntax from an external stylesheet called from
@import?
In a stylesheet containing both @import statements and rules, rules in
the stylesheet take precedence over those in the @import. But as I
understand it, support for this is patchy. Is IE4.5/Mac one of the
browsers which doesn't obey this?
Can someone with IE4.5/Mac test this?
Test case 1:
In the HTML:
<link rel="stylesheet" type="text/css" media="all"
href="one_and_only.css" />
in one_and_only.css:
@import: url(advanced_rules.css);
/* basic stuff follows */
Test case 2:
In the HTML:
<link rel="stylesheet" type="text/css" media="all" href="basic.css" />
<style type="text/css" media="screen">
@import: url(advanced.css);
</style>
in advanced.css:
@import: url(real_advanced_rules.css);
Test case 3:
In the HTML:
<link rel="stylesheet" type="text/css" media="all" href="basic.css" />
<style type="text/css" media="screen">
@import: url(advanced.css);
</style>
in advanced.css:
@import:
url
(ie_45_rules_which_dont_do_anything_advanced_but_have_the_same_selectors.css)
;
/*Real Advanced stuff follows */
Cheers
Martin
_______________________________________________
email: martin at easyweb.co.uk PGP ID: 0xA835CCCB
martin at members.evolt.org snailmail: 30 Shandon Place
tel: +44 (0)774 063 9985 Edinburgh,
url: http://www.easyweb.co.uk Scotland
More information about the thelist
mailing list