Structure void and air hitboxes in front of transparent things render behind it
If you are using structure block, try to turn on "Show invisible blocks." You will see structure void and air hitboxes. The bug is- they render behind water, glass, clouds, honey blocks and slime blocks.
Relates to MC-167342