Tests for shapes clipped with a top or bottom margin