Closed Bug 425432 Opened 17 years ago Closed 16 years ago

absolutely positioned elements offset by root's margin

Categories

(Core :: Layout: Positioned, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 243519

People

(Reporter: dbaron, Unassigned)

Details

(Keywords: css2)

Absolutely positioned elements that aren't inside another positioned element have their positions offset by the root element's margin. This differs from the CSS 2.1 spec, I think (and IE7 and Safari). Steps to reproduce: load http://dbaron.org/css/test/2008/abs-pos-cb/root-margin Expected results: 4 colored boxes in the corners of the viewport Actual results: top-left box is 100px from the corner of the viewport; the others require scrolling to see them.
Looks like bug 424710 is going to change the behavior here from one buggy behavior to another: it will make the top-right box 100px from the top right corner of the viewport, but still require scrolling down to see the two bottom boxes.
Maybe duplicate of bug 243519, but I can't tell.
(In reply to comment #0) > Steps to reproduce: load http://dbaron.org/css/test/2008/abs-pos-cb/root-margin The current Windows nightly includes the patch from Bug 243519. The testcase mentioned above is in line with all other engines and Acid3 works as well now. The patch has been backed out, but I think this is the evidence, that this bug is a dupe of Bug 243519 (or at least a problem fixed in that bug's patch).
No longer blocks: acid3
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.