Open
Bug 616296
Opened 14 years ago
Updated 2 years ago
empty element margins that collapse with top margin of parent not considered when clearing [MARGIN-C]
Categories
(Core :: Layout: Block and Inline, defect)
Core
Layout: Block and Inline
Tracking
()
NEW
People
(Reporter: dbaron, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Keywords: css2)
Attachments
(1 file)
(deleted),
text/html
|
Details |
We fail: http://test.csswg.org/suites/css2.1/20101027/html4/margin-collapse-157.htm because the margins of the element with class="empty" (which should collapse with the top margin of the element with class="clear" and should be above its top border edge) appear to end up not being considered when we compute the clearance. Contrast this case with the case in bug 493380, which is similar, but where I believe we're currently correct because the margin is a bottom margin on the element being cleared and not its child, and therefore affects the position of the element's top border edge differently.
This can be reduced to a very small and easy setup without float and clear. The margin-bottom of the empty element always gets doubled. Do I have a thinking error? I can clearly see what the bug is, but isn't this constellation rather common? Shouldn't we have seen such issues more often before?
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•