Closed Bug 126476 Opened 23 years ago Closed 23 years ago

CSS2 element bottom incorrect behavior with absolute blocks

Categories

(Core :: Layout, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 105286

People

(Reporter: sproctor, Assigned: attinasi)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204
BuildID:    2002020415

I may be reading the CSS2 spec incorrectly, but shouldn't an absolute div have
top, bottom, left, and right relative to its containing block, not the view port
(or whatever it's called)?  I've been noticing this behavior for a while and in
more recent builds.

Reproducible: Always
Steps to Reproduce:
1. make block in body
2. set position: absolute
3. set bottom: 0

Actual Results:  bottom of absolute positioned block is the bottom of the screen

Expected Results:  bottom of absolute positioned block should be shared with
bottom of body
You mean <html> not <body> right?  :)

Duplicate of "absolutely positioned 100% height div has height of viewport, not
root element?"  (same exact problem there).

*** This bug has been marked as a duplicate of 105286 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Changing QA contact
QA Contact: petersen → moied
You need to log in before you can comment on or make changes to this bug.