Recttransform UI PosY 0 reset Bug [Editor and Android] 2023.3.4f1

So I ran into this super weird issue where Unity resets an UI elements Y-axis position when I anchor it either to the top or bottom of the canvas. This happens with every restart.
So for example, if I create a new image within the canvas at 30, 25 and anchor it to the bottom center, then after I restart the editor the image is moved to 30, 0.
(This phenomenon also exists in the editor. and even after build, this phenomenon also exists in Android.)

Same here, it’s a bug; happens on all platforms when you choose stretch

Hello,

Would you kindly please report this issue via the Bug Reporter tool?
https://unity.com/releases/editor/qa/bug-reporting
Please make sure to write the exact steps needed to be taken so that the reproduction would be visually seen. Also make sure to attach a reproduction project and any visual material so that when testing our CQA team can verify that they got the same results. If you can, please use this template:

How to reproduce:

  1. Open the attached project
  2. Do this
  3. Do that
  4. Select this
  5. Observe that

Expected result: Something is visible, something is printed or something happens
Actual result: The opposite of what I expect happens

Reproducible with: Editor version I am using (e.g: 2021.3.xf1)

Reproduced on: The OS I am on (e.g: Windows 11, macOS Ventura 13.1 (Intel/Silicon))

(Edit: This bug was already known and is apparently fixed in 2022.3.5f.)

This is indeed a bug that can be reproduced with very minimal effort, so I submitted a bug report.

However, I was unable to reproduce any problems in builds.