The behavior sort of makes sense if you consider that
- the "fill" is between the edge(s) that you select (top/left, here), and the farthest opposite boundar(ies) of the moved layers (right of red, bottom of green)
- layers are ordered using their stack order