I think cwolves has the correct answer, and now it is probably the most logical. To help understand, you can come up with z-index like Photoshop layers. If you have a layer folder above another folder, the wrapped layers obviously cannot be located outside their parents unless you move them from the folder to another.
Or think of boxes: you can arrange things inside a box, but you cannot arrange things from two different boxes unless you move them from a box to another.
If you are faced with a situation where you need a different agreement, you probably need to think about your markup to allow this.
source share