Closed Bug 122576 Opened 24 years ago Closed 24 years ago

Style Sheets not applied

Categories

(Tech Evangelism Graveyard :: German, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: meine.adresse, Assigned: tristan)

References

()

Details

(Whiteboard: [MIME CSS])

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8+) Gecko/20020129 BuildID: 2002012903 When opening the page, Mozilla does not apply the style sheets. Page renders well in Internet Explorer 5.5 w3c.org CSS Validator validates CSS. HTML Validator validates HTML, except for some missing alt-tags in images. Reproducible: Always Steps to Reproduce: 1. Open page in mozilla Actual Results: Just page content is rendered, no style sheets applied Expected Results: Style sheets should be applied
The Content-Type provided by the server for the stylesheet is text/html, not text/css. This is wrong. The DOCTYPE specified forces page to be laid out in Strict mode. Which makes Mozilla ignore this stylesheet. If you want for this stylesheet to work, either fix it's content-type, or make a page that is laid out in Quirks mode which will forgive this error. For more info see: http://mozilla.org/docs/web-developer/quirks/ *** This bug has been marked as a duplicate of 113399 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Component: Layout → Style System
Resolution: --- → DUPLICATE
reopening. This is an evangelism bug.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
--> evang
Assignee: attinasi → nitot
Status: UNCONFIRMED → NEW
Component: Style System → African
Ever confirmed: true
OS: Windows 2000 → All
Product: Browser → Tech Evangelism
QA Contact: petersen → momoi
Hardware: PC → All
Whiteboard: [MIME CSS]
Version: other → unspecified
wrong component.
Component: African → Europe: West
QA Contact: momoi → caillon
Well, first off all I have to thank you for your comment, as it helped me to fix the problem. On the other hand, isn't this too nitpicking? The style sheet used in this page is generated via PHP4, therefore the name of the style sheet file is stylesheets.css.php - that's why, I guess, the server didn't send a text/css header but a text/html header. So what I had to do is to embed a php command making the server send a text/css header - that solved the problem. There was nothing wrong with the style sheet, though, only the header. Shouldn't Mozilla be able to tolerate that?
Well, mozilla _is_ able to tolerate it. Doing so is a violation of the HTTP specification, however (and there are cases when that can actually matter). So we tolerate it in quirks mode and don't tolerate it in standards mode. Your page triggers standards mode. We _should_ provide an error indication, however; that's bug 113399. Marking this bug fixed since the sheet is now applied.
Status: NEW → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Verified 2002022203/WinXP
Status: RESOLVED → VERIFIED
The QA Contact for Europe: West has changed to brantgurganus2001@cherokeescouting.org. If there is a reason for you to stay as the QA Contact, feel free to change back.
QA Contact: caillon → brantgurganus2001
tech evang june 2003 reorg
Component: Europe: West → German
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.