Connected 2 different textures behind walls

I've seen resource packs using continuity have two blocks overlapping each other but it doesn't work when one block is hidden behind a wall Is it possilbe to have two diffrent block have conected textures even if one is obscured?

Continue to help post