Closed
Bug 60195
Opened 24 years ago
Closed 24 years ago
[MARGIN-C]position:absolute causes next sibling to loose margin-top
Categories
(Core :: Layout, defect, P3)
Tracking
()
People
(Reporter: c, Assigned: buster)
Details
Attachments
(1 file)
493 bytes,
text/html
|
Details |
If the first child of a block-level element has position:absolute,
it causes the next sibling to loose margin-top, but only if the parent
has no border and no padding.
The testcase shows where the bug appears and where not.
All "test"-boxes should have 8px between them, but #2 and #3 haven't.
<HTML>
<STYLE>
DIV.test { margin-top: 8px; border: 2px solid black; padding: 4px; }
DIV.abs { position: absolute; }
</STYLE>
<DIV class=test>test 1</DIV>
<DIV class=test>test 2</DIV>
<DIV>
<DIV class=abs></DIV>
<DIV class=test>test 3</DIV>
<DIV class=abs></DIV>
<DIV class=test>test 4</DIV>
</DIV>
<DIV class=test>test 5</DIV>
<DIV style="border: 2px solid red">
<DIV class=abs></DIV>
<DIV class=test>test 6</DIV>
<DIV class=test>test 7</DIV>
</DIV>
</HTML>
Moz 2000-10-30-06 and NS 6.0; Win NT.
Reporter | ||
Comment 1•24 years ago
|
||
This is a known bug. I think it's a dup of an existing [MARGIN-C] bug.
Assignee: pierre → buster
Component: Style System → Layout
Summary: position:absolute causes next sibling to loose margin-top → [MARGIN-C]position:absolute causes next sibling to loose margin-top
*** This bug has been marked as a duplicate of 18206 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 4•24 years ago
|
||
Verifying.
Sorry, didn't found bug 18206.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•