Expected results: There should be a rectangle with a green background right under, immediately below this sentence.

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

position: relative; top: 50%;

and its nearest block-level ancestor is <body> 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