Closed Bug 113729 Opened 24 years ago Closed 24 years ago

CSS styles don't seem to get applied to XML pages

Categories

(Tech Evangelism Graveyard :: English US, defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: oeschger, Assigned: oeschger)

Details

In this morning's build (12/05/01), XML pages do not pick up styles defined in a CSS page. Test page: http://ptxe.mozdev.org/xul_auto.xml I open this in an older build (11/30/01) and see the blue headers, block-style text and other stuff defined in the xul_table.css page linked to as: <?xml-stylesheet href="xul_table.css" type="text/css"?>. But in today's build I only see the bunched up raw text.
That site serves up the stylesheet with an incorrect mimetype: ~% telnet ptxe.mozdev.org 80 Trying 64.61.9.172... Connected to ptxe.mozdev.org. Escape character is '^]'. GET /xul_table.css HTTP/1.0 Host: ptxe.mozdev.org HTTP/1.1 200 OK Date: Thu, 06 Dec 2001 03:12:09 GMT Server: Apache/1.3.13-dev (Unix) PHP/4.0.4pl1 ApacheJServ/1.1.2 Vary: Host X-Powered-By: PHP/4.0.4pl1 Connection: close Content-Type: text/html We now do not accept such stylesheets in strict mode. Hence the sheet is never loaded. Evangelism.
Assignee: heikki → bclary
Component: XML → English: US
Product: Browser → Tech Evangelism
QA Contact: petersen → zach
Version: other → unspecified
Sorry to bother you again...what is the right way to reference an external stylesheet now? Thanks. That's my site, so I'll take the "evangelism" for fixing the XML/CSS there myself. Accepting.
Status: NEW → ASSIGNED
accepting
Assignee: bclary → oeschger
Status: ASSIGNED → NEW
""
Status: NEW → ASSIGNED
The XML is fine. So is the CSS. This is a web server bug. The server should be sending the sheet as text/css, not text/html. It's apache, so step one is to add a .htaccess file to the directory the sheet is in and put the line AddType text/css .css If this fails either because the server does not look at user .htaccess files or because mod_mime is not loaded, it's time to contact the web server admin and complain....
Ian marking as invalid. I had mozdev configured to parse css file with php for back when i was doing the script editor. I removed it and it defaults back to it's proper mime type. Works fine now. $ telnet ptxe.mozdev.org 80 Trying 64.61.9.172... Connected to ptxe.mozdev.org. Escape character is '^]'. GET /xul_table.css HTTP/1.1 Host: ptxe.mozdev.org HTTP/1.1 200 OK Date: Thu, 06 Dec 2001 17:43:58 GMT Server: Apache/1.3.13-dev (Unix) PHP/4.0.4pl1 ApacheJServ/1.1.2 Vary: Host Last-Modified: Thu, 15 Nov 2001 16:52:44 GMT ETag: "8d30-313-3bf3f2dc" Accept-Ranges: bytes Content-Length: 787 Content-Type: text/css tag { margin-left: .125in; display: block; font-weight: bold; } tags[status="all"] tagname { display: block; background-color: darkblue; color: white; max-width: 300px; min-width: 300px; } tags[status="all"] tag { margin-bottom: .125in; border: 1px solid darkblue; max-width: 300px; min-width: 300px; } tags[status="manual"] tagname { display: block; background-color: darkred; color: white; max-width: 300px; min-width: 300px; } tags[status="manual"] tag { margin-bottom: .125in; border: 1px solid darkred; max-width: 300px; min-width: 300px; } attname { display: block; margin-left: .25in; font-weight: normal; } attribute { display: block; } attdesc { display: none; } tagdesc { display: none; } Connection closed by foreign host. --pete
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
v
Status: RESOLVED → VERIFIED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.