Checked that it also works with relatively positioned elements