Forum Moderators: open
I always thought Netscape was Mozilla. ?
Mozilla is just slightly different in the interface department from Netscape 6.
And Mozilla 0.9.9 should be just around the corner, and with moderated CVS commits, hopefully we will have a stable Mozila 1.0 soon :)
I was just on the mozilla website and version 0.9.9 is out as of yesterday
[mozilla.org ]
However, Moz does follow the W3C spec that in the CSS file, @import must appear before any selector, otherwise that external stylesheet will not be imported. Whereas in IE, which sometimes goes against the official spec, allows you to have an @import statement after the selectors in CSS.
About the browser, I had a copy of .9.1 and didn't like it much. It seemed to render fine. Better than Netscape 6.0 did anyway but it seemed too buggy in other ways and I didn't get any subsequent builds until this one. I haven't been this excited about a browser in a long time. I also haven't seen an unrequested pop-up window in two days. :)
Site where external style sheet is not imported: <link rel="stylesheet" type="text/css" href="global.css" />
<link rel="stylesheet" type="text/css" href="cover.css" />
Second site where external style sheet IS imported: <link rel="stylesheet" type="text/css" href="styles/main.css" />
<link rel="stylesheet" type="text/css" href="styles/chrome.css" />
All in the Head content, the only difference is that the second example also has some embedded CSS (unique to the page) in the head contentwhich of course renders properly, but the external styles are also present, so the are being imported.
Third example where external styles are ignored by Mozilla use the following: <style type="text/css" media="screen">
@import "styles/index02.css";
</style>
Again, all of the above have no problems rendering with the previoulsly mentioned browsers, only Mozilla demonstrating the variance.
For example,
<style type="text/css">
div { }
@import url(some_style.css);
</style>
doesn't work for me in Mozilla, but works in IE.
Its fine on every other browser but Mozilla.
Now the interesting part was, that while the local *.txt css file still didn't work, renaming it back to *.css (as well as the reference, you know you have two of those?) suddenly reanimated it. This effect may be a consequence of Mozilla applying its internal mime-type database when reading files from disk, so that it will refuse to load a *.txt file as css. I then made the name longer again, and it kept working from the local disk.
My guess would be that your server is not configured to serve *.css files with a "Content-type: text/css" header, which confuses Mozilla. The file is currently served with a type of text/plain. I'd try to add the following type declaration to the .htaccess, and see what happens:
AddType text/css .css
It looks like Mozilla ignores the type attribute in the link tag, if the server doesn't deliver the file with the matching type header. I have no idea if that's correct behaviour, but it should be easy enough to circumvent.
I missed the obvious.
Unlike all our other sites, that one is hosted elsewhere (on a Zeus setup).
I posted it to our normal unix/apache box and the problem was gone.
The .htaccess didn't work on the Zeus site - but then some of my other .htaccess kludges didn't either, (although my custom 404 page does)
So , it is server/mozilla interaction.
I fixed the problem by moving the css file to my own server and calling it from there (only fixed the index page so far).
Its not ideal, but it works
[mozilla.org...]
When a page using a strict document type declaration (e.g. HTML 4.01 Strict) links to an external style sheet (using <link>, @import, etc) Mozilla will load the style sheet only if it is served with a MIME type of "text/css". Style sheets served with other MIME types, like text/plain, application/x-pointplus, etc. will not be loaded. To add the proper css mime type to an Apache web servers, add "text/css css" to the system mime.types file. Or if you can't do that, add "AddType text/css .css" to your .htaccess file.
Webmasters take note! When using a Standards <!Doctype> Mozilla will NOT import your external style sheets unless the proper mime type is present on sites housed on Apache web servers. Without the <!Doctype>, Moz will default to quirk mode and WILL recognize the external style sheets without any addition to the .htaccess file.
This is one of those situataions that can sneak up on Webmasters as they migrate to Web Standards. I am sure this is one of those things that will cause more than a few Webmasters an unpleasant surprise.
I would like to see the Mozilla Organization give this a little higher profile in the release notes and FAQs.