Closed
Bug 180770
Opened 22 years ago
Closed 22 years ago
When application/xhtml+xml is used, background not completely painted.
Categories
(Core :: Layout, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: joelbeach, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2b) Gecko/20021029 Phoenix/0.4
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2b) Gecko/20021029 Phoenix/0.4
When the page is served as text/html, it renders fine. I just changed it to
render as application/xhtml+xml, there are now anomalies with teh background.
This is fairly major, since hixie is promoting the use of the correct mime types
with strict XHTML documents. Even when it is served as text/html, it is in
struict standards compliant mode (it uses XHTML strict).
Reproducible: Always
Steps to Reproduce:
1. Go the URL
2. Observe background not painted properly
Comment 1•22 years ago
|
||
That gap is cuased by the following declaration in your 'body' rule:
margin: 0.75em;
Two options:
1. Change the 'margin' to 'padding' in that rule.
2. Move the background color to the 'html' element instead of the 'body'
element. (This is the better choice in an XHTML document.)
I think this is probably INVALID, unless it's a WONTFIX or a duplicate. In any
case, Mozilla is acting as intended, if not necessarily as expected.
![]() |
||
Comment 2•22 years ago
|
||
This is invalid. See http://www.w3.org/TR/CSS21/colors.html#q2 for an
explanation of backgrounds on "body" and note the "(This does not apply to XHTML
documents.)" part.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 3•22 years ago
|
||
Yep, read that section. Thanks. I have fixed my site by moving the colour
declaration to the html tag.
Comment 4•22 years ago
|
||
VERIFIED. This is one of the many reasons I'm advocating that people stop
sending XHTML as text/html -- when they eventually switch, they're gonna run
into troubles. Better just stick with HTML4.01 until (a) the majority of browers
support XHTML natively and (b) the site is about to be redesigned anyway.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•