Transparent renderers are sorted back-to-front before rendering. Depending on the camera angle, the sorting order may change. This is true for UI Toolkit, UGUI, and any other transparent renderers. There are a few workarounds: assign your elements in the same UIDocuments (which will then be rendered by the UI Toolkit hierarchy order), or apply offsets on the positions.