Click on the squares to see events propagate in z order in the console. The black square cancels the event preventing propagation.