Linked stylesheet fluke.



Tech Evangelism Graveyard
English US
16 years ago
3 years ago


(Reporter: Rob McMeekin, Assigned: Marc Attinasi)






16 years ago
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc1) Gecko/20020417
BuildID:    2002041717

This fluke has been bothering me since I first started using Mozilla (
&#173; 1.0rc1-0). <a
href="">One page</a> has a
stylesheet linked with the tag &lt;link rel=&quot;stylesheet&quot;
type=&quot;text/css&quot; href=&quot;<a
type="text/plain">style.css</a>&quot;&gt;. A <a
href="http:/">second page</a> has the
same stylesheet inline with the &lt;style type=&quot;text/css&quot;&gt; ...
&lt;/style&gt; tags. Both pages look the same when I view the from my hard disk,
but when I view them from a server&#8212;be it my localhost server or my service
provider's (which both happen to be apache 1.3 I believe)&#8212;Mozilla refuses
to display the first page with the stylesheet, but it displays the second one
fine. Other browsers I tried worked consistently for both pages (Internet
Explorer 5.0 and Netscape 4.73 under WinME). I have only tested this with
Mozilla under Red Hat Linux 7.2.

Reproducible: Always
Steps to Reproduce:
1. Load <a
href="">index.html</a> in
Mozilla under Linux. You will not find evidence of the stylesheet referenced in
the &lt;head&gt; section.
2. Download <a href=""
type="text/plain">index.html</a> along with<a
type="text/plain">style.css</a>&#8212;the referenced stylesheet&#8212; and view
the page locally. You will notice evidence of a stylesheet.
3. Load <a
href="">inline.html</a> in
Mozilla under Linux. You will notice evidence of a stylesheet and if you compare
the inline stylesheet code with the <a
type="text/plain">style.css</a> code, you'll find they are the same.

Actual Results:  Just as described above.

Expected Results:  The page should have been displayed consistently.
When you activate Mozilla 'strict mode' (by using a Strict doctype), the
stylesheet mimetype should be text/css. Wrong mimetypes, such as text/plain,
will make Mozilla ignore the stylesheet.

-> Tech Evangelism, confirming
Component: Layout → Authors
Ever confirmed: true
Product: Browser → Tech Evangelism
Version: other → unspecified
Rob: and btw. the CSS validator will find an

padding; 0px;

Comment 3

16 years ago
OK. I fixed the padding; 0px; and I put a copy of how my bug report was supposed
to look at so that you guys can
read it. I still can't get the first(1) page to work right online though it
works fine locally and works fine remotely with other browsers.

The type is text/css in the file. The text/plain above was supposed to be part
of an anchor tag. My bad. ;-)

[21:06:33] mauricio@debian:/home/Mauricio$ telnet 80
Connected to
Escape character is '^]'.
GET /~rob-mcmeekin/style.css HTTP1/1

HTTP/1.1 200 OK
Date: Mon, 22 Apr 2002 00:08:05 GMT
Server: Apache/1.3.9 (Unix)
Last-Modified: Sun, 21 Apr 2002 23:52:39 GMT
ETag: "1f880-309-3cc350c7"
Accept-Ranges: bytes
Content-Length: 777
Connection: close
Content-Type: text/plain

Your server is still sending the CSS as text/plain...

Comment 5

16 years ago
So what you're telling me is that it's supposed to do that. That does explain
things then.

Comment 6

16 years ago
I guess it's really not a bug then.
Last Resolved: 16 years ago
Resolution: --- → INVALID
rubber stamp verified as reporter invalidated

Comment 8

15 years ago
Moving to new component
Component: Authors → English US
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.