Closed
Bug 577174
Opened 15 years ago
Closed 15 years ago
@import in css dont work in ff 3.6.6
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: webmaster, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 (.NET CLR 3.5.30729)
@import in css dont work in ff 3.6.6
Reproducible: Always
Comment 1•15 years ago
|
||
Do you have an example/testcase ?
| Reporter | ||
Comment 2•15 years ago
|
||
Comment 3•15 years ago
|
||
From the Firefox error console:
Error: The stylesheet http://www.travelinhotel.com/css/external.css was not loaded because its MIME type, "application/x-httpd-php", is not "text/css".
Source File: http://rome.hotels.travelinhotel.com/
Line: 0
the content-type for the stylesheet is wrong.
I confirmed that by entering http://www.travelinhotel.com/css/external.css in http://web-sniffer.net
Status: HTTP/1.1 200 OK
Date: Wed, 14 Jul 2010 14:17:48 GMT
Server: Apache/2.2
Last-Modified: Tue, 30 Mar 2010 21:31:14 GMT
Accept-Ranges: bytes
Content-Length: 16551
Vary: Accept-Encoding
Connection: close
Content-Type: application/x-httpd-php
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 4•15 years ago
|
||
This is not resolved.
Before was possible to do this, integrate a dynamic page in css. With all older versions.
Actually, in all the other browsers is possible to do this.
Comment 5•15 years ago
|
||
It's resolved because it's invalid
Read the error message in comment #1 again.
The @import isn't the problem here, your server sends the wrong content-type for the CSS file and Gecko rejects such files if you are in the standards compliance mode.
You seem to have fixed your server now because I get the correct content-type for http://www.travelinhotel.com/css/external.php
Status: HTTP/1.1 200 OK
Date: Thu, 15 Jul 2010 15:33:37 GMT
Server: Apache/2.2
Vary: Accept-Encoding
Content-Length: 16551
Connection: close
Content-Type: text/css
Such an incorrect content-type didn't work in all Gecko Version in the last few years.
| Reporter | ||
Comment 6•15 years ago
|
||
Yes, i changed it simply changing file extension to php and putting the different content type to it's header.
Thank you
You need to log in
before you can comment on or make changes to this bug.
Description
•