Closed Bug 289893 Opened 20 years ago Closed 20 years ago

CSS files with no extension are loaded but ignored (Web only, local files OK)

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: rchatwin, Assigned: dbaron)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050410
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050410

Testbed page: http://chatwin.f2o.org/Literature/poe-raven.html. The 3 small CSS
file URL's have no extensions (1lit and not 1lit.css, etc.). The file loads
(visible in View-->Styles-->poetry with the activated bullet at the left), but
is ignored completely.
The page validates for HTML4.01-strict and CSS (with the full listing of the
three style sheets involved in the W3C's output).
Non-Gecko browsers, no problem (IE for Mac, Opera, Safari).
Most oddly, there is no bug reading the files from the local system (URL's
file:///... ).
URL's with no extension are, I believe, recommended by W3C for future
compatibility. See for example Tim Berners-Lee's note "Hypertext Style: Cool
URIs don't change" http://www.w3.org/Provider/Style/URI
(Since I have not filed a bug report before, let me say *thanks* to all you
great folks of Mozilla. Love Firefox, especially independent on a pen-drive.)

Reproducible: Always

Steps to Reproduce:
1.Load the testbed URL http://chatwin.f2o.org/Literature/poe-raven.html
2.View-->Styles The poetry style sheet is bulleted as active, but is ignored.
3.Validator buttons (bottom of page) show HTML4.1-strict and CSS (listing the
three short cascaded style sheets).
4.There is *no* problem with local files. The essential tree is:
   poe-raven.html  Styles
                     ¦
                     1lit _page _scrn
Actual Results:  
The page is rendered with the style sheet ignored.

Expected Results:  
An example (25K PDF)(nearly correctly styled) of the *print* output from Firefox
(with _local_ files) is here:
http://usuarios.lycos.es/rchatwin/2005/firefox102_WrongFont_BrokenVerses.pdf

The testbed page includes at the bottom the listing of the 3 short style sheets.
Server configuration error.


Javascript console shows:

Error: The stylesheet http://chatwin.f2o.org/Literature/Style/1lit was not
loaded because its MIME type, "text/plain", is not "text/css".


Headers:

Date: Mon, 11 Apr 2005 13:05:01 GMT
Server: Apache/1.3.33 (Unix) JRun/4.0 Sun-ONE-ASP/4.0.0 mod_gzip/1.3.26.1a
PHP/4.3.10
Vary: Accept-Encoding
Last-Modified: Sun, 10 Apr 2005 07:08:23 GMT
Etag: "bf0198-189-4258d0e7"
Accept-Ranges: bytes
Content-Length: 393
Keep-Alive: timeout=10, max=350
Connection: Keep-Alive
Content-Type: text/plain

200 OK
INVALID. Trigger quirks mode if you really want this to work.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
verified invalid
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.