#5705 closed (wontfix)
Admin login window CSS bug when using application/xhtml+xml
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
With my projects, I like to use DEFAULT_CONTENT_TYPE = 'application/xhtml+xml' in my settings.py file. I then use an XhtmlDegrader? middleware, to gracefully degrade my pages to text/html to browsers that do not support this mimetype, such as IE.
Everything else seems to be fine when using application/xhtml+xml for Admin, except one little minor bug with the login window.
The bug is that the background is not all covered in grey, but rather only a tiny strip. This bug does not occur when admin is served as text/html.
Usually this sort of bug happens if you put the background colour in the body{} selector, when it should be in html{} selector instead, as body{} only grows with the page content when in strict HTML mode, and may not necessarily cover the whole page.
To fix, move the grey background into the html{} selector in the CSS.
Change History (3)
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 16 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:3 by , 16 years ago
(And yes I'm aware that the admin uses an XHTML doctype. Pay no mind. That could be changed at some point, but there's precious little point pragmatically.)
The admin is HTML, not XHTML; that's just the color we chose to paint this particular bikeshed. Either don't serve the admin as XHTML, or else deal with the consequences.