Closed Bug 283825 Opened 20 years ago Closed 20 years ago

body background displayed outside border

Categories

(Core :: Layout: Block and Inline, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: kae, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0

in every other element, it seems that the background is confined to the inside
of the border, but body's background spills out to fill the full screen - surely
the border should be outside the background?

Reproducible: Always

Steps to Reproduce:
1. create a simple HTML page containing just the body and a little bit of text
2. give body a border and a background colour
3. make sure the browser's window is large enough to display the text with
plenty of room left over

Actual Results:  
the body's background fills the screen, but the border does not.

Expected Results:  
if a window is too large for the contained elements, then the body should not be
artificially expanded to full the full screen, but /actually/ expanded, so that
the border reaches right to the bottom of the page, instead of displaying just
under the last of the contained elements.
For HTML this is the desired rendering according to CSS 2.1:
http://www.w3.org/TR/CSS21/colors.html#q2

Try setting non-transparent background on <html> or use XHTML.

-> INVALID
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.