Closed
Bug 152864
Opened 22 years ago
Closed 22 years ago
Browser does not understand css files with php extension
Categories
(Core :: DOM: CSS Object Model, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: HSchaefer, Assigned: jst)
References
()
Details
The browser seems to not understand <LINK REL=STYLESHEET> - tags where the used stylesheet is not a *.css file, but a *.css.php3 file taking some parameters (e.g. the font to be used) to generate the final stylesheet (which is a correct css 2.0 sheet). The browser seems to ignore the file and its contents completely, while this works fine with other browsers. After having renamed the .css.php3 file into .css, everything works fine, but I have lost the capability of dynamically generating the required file.
Comment 1•22 years ago
|
||
Make sure you PHP is sending back a "Content-Type: text/css" header and not a "Content-Type: text/html" header. If it is sent back as text/html then we ignore it because we don't know how to handle text/html stylesheets.
Comment 2•22 years ago
|
||
That does in fact seem to be the problem:
> HTTP/1.1 200 OK
> Date: Wed, 19 Jun 2002 20:05:19 GMT
> Server: Apache/1.3.23 (Unix) PHP/4.1.2 mod_ssl/2.8.7 OpenSSL/0.9.6b
> X-Powered-By: PHP/4.1.2
> Connection: close
> Content-Type: text/html
Comment 3•22 years ago
|
||
Solution: get your PHP script to send the correct content-type (text/css) for the stylesheet (and the correct charset, if possible). INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•