Child’s horizontal margins and padding influence positioning origin of non-hasLayout RP parent with zero-width padding-top and border-top in IE6

This document provides further test cases in support of a parent paper which investigates non-standard positioning behaviour in Internet Explorer 6.

Order is important; each produces a non-standard result

Note that the non-hasLayout parent is not rendered above the top border edge of block-level descendant with whom its margin collapses.

normal div normal div normal div normal div
AP-child, second

AP-child, first
normal div normal div normal div normal div

An unstyled intermediate wrapper does nothing

normal div normal div normal div normal div
AP-child, second

AP-child, first
normal div normal div normal div normal div

Non-adjacency kills the effect in certain situations

normal div normal div normal div normal div, first
unstyled div, second
AP-child, third

AP-child, first
unstyled div, second
normal div normal div normal div normal div, third

normal div normal div normal div normal div, wrapped
AP-child, second

normal div normal div normal div normal div
AP-child, second, wrapped

normal div normal div normal div normal div, wrapped
AP-child, second, wrapped

AP-child, first
normal div normal div normal div normal div, wrapped

AP-child, first, wrapped
normal div normal div normal div normal div

AP-child, first, wrapped
normal div normal div normal div normal div, wrapped

Effect only occurs when key children are at roughly the the same vertical level

unstyled div, first
normal div normal div normal div normal div, second
AP-child, third

unstyled div, first
AP-child, second
normal div normal div normal div normal div, third

Effect is prevented when RP parent is hasLayout

normal div normal div normal div normal div
AP-child, second

AP-child, first
normal div normal div normal div normal div

normal div normal div normal div normal div, first
unstyled div, second
AP-child, third

AP-child, first
unstyled div, second
normal div normal div normal div normal div, third

Note that here we see a bug in which the background and borders of a wrapped normal div ancestor of an RP hasLayout parent are not rendered.

normal div normal div normal div normal div, wrapped
AP-child, second

AP-child, first
normal div normal div normal div normal div, wrapped

unstyled div, first
normal div normal div normal div normal div, second
AP-child, third

unstyled div, first
AP-child, second
normal div normal div normal div normal div, third