Bug 20601

Summary: php/css file not referenced correctly on loaded page
Product: WebKit Reporter: Austin Meyers <aatawm>
Component: CSSAssignee: 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
Reported 2008-09-02 10:00:29 PDT
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
Alexey Proskuryakov
Comment 1 2008-09-07 11:35:31 PDT
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
Comment 2 2008-09-08 13:16:21 PDT
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
Comment 3 2008-12-29 05:33:55 PST
It's intended behavior. It's required by Acid3 test. Details in bug 17298.
Note You need to log in before you can comment on or make changes to this bug.