Reproduction steps:
1. Open the attached "BrokenCanvasPrefabVariants" project
2. In the Project window, right click on the "Canvas" Prefab and select Create -> Prefab Variant
3. Click on the created Prefab to open its' Inspector window
4. Observe the results
Expected results: Rect Transform values do not get reset
Actual results: Rect Transform values get reset
Reproducible with: 2021.3.34f1, 2022.3.18f1, 2023.2.7f1, 2023.3.0b4
Reproducible on: Windows 11 Pro
Not reproducible on: No other environments tested
Notes:
- This does not happen when creating a Prefab Variant by dragging from the Hierarchy window
- When creating the Prefab Variant an "Assertion failed on expression: 'modifications.empty()'" error appears in the Console