It isn't. The div you have with the class name "named" which is green and has the view-transition-name property is painted below the other div with the class name "fixed" which is red and has the position: fixed property.
view-transition-name
position: fixed