We could leave it but in all my testing I have not found it to be necessary taking into account that the overlay is always one of the latest elements added to the DOM and consequently it "appears" on top of the previous ones (absolute positioning, etc.) (if these ones do not modify their z-index of course :-p ) Do you have in mind any case where setting the z-index of the overlay element is necessary?