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)

x86
Windows XP
defect
Not set
normal

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
Do you have an example/testcase ?
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
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.
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.
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.