re-pasting:

Better append this element to the DOM before checking `.css('z-index')`. Blink/WebKit have bugs with `getComputedStyle` on disconnected elements and AFAIK we don't workaround that currently so this test will fail there if you don't do it.

You also don't need to set `position` here.