Closed Bug 269184 Opened 20 years ago Closed 20 years ago

Content types "text/xml", "application/xml" and "application/xhtml+xml" causes (minor) layout problems

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 269185

People

(Reporter: zipdragon7, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1

When using content type "text/xml", "application/xml" or "application/xhtml+xml"
will cause the following code not to display properly.

body {
 background-color: black;
 color: white;
}

or <body bgcolor="#000000">

or using inline style attributes (<body style="background-color: black;">)

but the weird thing is the elements other than "body" will work okay.

For example, inheritance:

<div style="background-color: inherit">

while you have "body {background-color: black; color: white;}" will actually
cause the <div> element to display a black background with white text.

The problem is, in fewer, less confusing words:

The background color of the document body will not change to any color, it will
remain white unless using the content type "text/html".

I tested this same document in Opera 7.54 Build 3869, and it supports the
display of the body's background color using the above content types.

Reproducible: Always
Steps to Reproduce:
1. Create a XHTML document using "text/xml", "application/xml" or
"application/xhtml+xml" as the content type.
2. Set the CSS "background-color" property to any color other than white for the
document's body (a.k.a. <body>).
3. Load document.
Actual Results:  
The background color of choise is not shown at all.

Expected Results:  
What ever makes it work using the content type "text/html" should be applied to
XHTML documents using the "text/xml", "application/xml" and
"application/xhtml+xml" content types.
This is not FF specific, so one Browser bug is enough.

*** This bug has been marked as a duplicate of 269185 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
(In reply to comment #1)
> This is not FF specific, so one Browser bug is enough.
> 
> *** This bug has been marked as a duplicate of 269185 ***

You're right, it's not.

But, seeing as how they had one area for the Mozilla suite and one for Firefox,
then I filed two seperate, but identical bugs for each program.

Maybe they should just have one called "Code Base" for "every" Mozilla-based Web
user agent, this way I won't have to file a duplicate bug for "two" different
pieces of software.

Maybe I will suggest that, it might actually work.

Note: For any future readers of this bug, I would suggest making all comments on
bug#: 269185, seeing as how the discussion has already began.
You need to log in before you can comment on or make changes to this bug.