Correct next/previous visible position algorithms next to void elements