Stacking Context and the z-index

Each box has a number which is it's z-index value. The box mini 2 is a child of box 2. So despite it's high z-index of 5 it is still below box 3.

box 1
box 2
mini 2
z-index: 5
box 3
box 4