Expected results: There should be a 400px wide by 200px high <div> with a green background right under, immediately below this sentence.

This background green block is a relatively positioned <div>. The CSS code applying to it is

position: relative; top: 50%;

and its nearest block-level ancestor box is the <body> node and its height is auto.

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Filing

Expected results: when the height of the containing block of a relatively positioned element is auto, then top: <percentage>; must be resolved as top: auto;.

References:

Valid HTML 4.01! CSS compliant