Above there are five blue boxes (div-elements, labeled 1 to 5), where the labeled number equals the defined z-index for each box.
This test has succeeded, if the stacking order of boxes corresponds with the labeled numbers (box '5' overlaps '4', '4' overlaps '3' etc.)
This raster image screenshot shows the desired rendering.