This tests that top layer elements are stacked correctly even if nested in the DOM tree. The test passes if you see no red rectangles and see 3 rectangles stacked in the following order (from bottom to top): yellow, blue, green.