Closed Bug 1580 Opened 26 years ago Closed 26 years ago

scrollbars and margins on BODY

Categories

(Core :: Layout, defect, P2)

x86
Other
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: dbaron, Assigned: troy)

References

()

Details

The scrollbar should be placed on the HTML element, not the BODY (when BODY has margins). The margins of BODY (they only exist on top and bottom - the document's STYLE elemnt changes the sides to padding) should be blue and within the scrolling area. For some reason, only the side margins are being applied on http://www.fas.harvard.edu/~dbaron/links/Internet.html even though it has all 4 margins - that is, only the side margins are getting extra "white." The top and bottom margins seem to be being handled correctly. This white area should also be blue, because when HTML doesn't have a background it should "inherit" from BODY. (11/23 build)
Assignee: kipp → troy
Now you have a bug to hang that stuff we've been talking about. dbaron: we have been planning to fix this and move the scrollbar to the HTML element and make the HTML element a child of a "root frame" that is outside the document. This meshes well with XML. We have just deferred the work until after the current stability push. I have several open bugs of my own that will get fixed as soon as this is fixed....
Perhaps it would be nice to implement the CSS2 overflow property to handle this (and of course do everything else that it does). See http://www.w3.org/TR/REC-CSS2/visufx.html .
You are no longer painting all of BODY's margin with HTML's background color. You seem to be only painting a rectangle the size of BODY, thus ignoring the right and bottom margins. However, this improves if I switch to another window (Alt+Tab) and then back again.
*** Bug 1705 has been marked as a duplicate of this bug. ***
I made a separate bug (bug #2016) for the part about no longer painting the BODY's margin with the HTML's background color, because they're different problems
The scrollbar is now placed on the HTML element, and not on the BODY element
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
I think your fix for this caused margin-top to get the color of BODY intead of the color of HTML. (or maybe it made it go away entirely...) See http://www.w3.org/Style/CSS/Test/current/sec45.htm Should this bug be reopened or does this go on 2016?
Actually, the margin-top is now ignored. See http://style.verso.com/boxacidtest/vd/
Status: RESOLVED → VERIFIED
Verified as fixed.
You need to log in before you can comment on or make changes to this bug.