This requires creating a matching stacking context for every reference
frame and also properly placing those stacking contexts inside them.