View transitions and stacking context: Why does my CSS View Transition ignore z-index? - Nic Chan
Briefly