Bug 20601
| Summary: | php/css file not referenced correctly on loaded page | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Austin Meyers <aatawm> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | webkit |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac (Intel) | ||
| OS: | OS X 10.5 | ||
| URL: | http://segoviaaustin.com/menus/test.php | ||
Austin Meyers
i have a css file with embedded php for setting certain parameters on the fly (page width etc) and when loading a page that references the css file (with .php ext) it displays an unstyled page.
when loading the same page/css with stock safari everything renders as it should.
below is the link to the parsed css file:
http://segoviaaustin.com/css/lunchcss.php
Unparsed css file (as .txt):
http://segoviaaustin.com/css/lunchcss.txt
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
I cannot reproduce this with nightly r36274 on Mac OS X 10.4.11 - the page looks exactly the same (styled) as with shipping Safari/WebKit.
Austin Meyers
I updated the previous pages with a fix...
here is the original problem
http://segoviaaustin.com/menus/test.php
direct link to css file
http://segoviaaustin.com/css/test.php
I discovered that if i put:
<?php
header("Content-type: text/css");
?>
at the beginning of the file they handle correctly. although with or without the header clause safari renders the page correctly, whereas FF, IE8 and webkit do not.
Robert Blaut
It's intended behavior. It's required by Acid3 test. Details in bug 17298.