How to reproduce:
1. Open the user-attached project “MaxWidthProblem“
2. In the Project tab, click Assets → UITkTest → TestCase.uxml
3. Observe the #ProblemCase element in the Viewport
Expected result: The yellow outline matches the red outline
Actual result: The yellow outline has an offset from the right and doesn’t match the size of the red rectangle
Reproducible with: 2021.3.20f1, 2022.2.9f1, 2023.1.0b6, 2023.2.0a4
Couldn’t test with: 2020.3.45f1 (uxml file can’t be loaded properly)
Reproducible on: Windows 11 Pro
Workaround: Use “flex-basis” property with “flex-grow” specified by 0
Note: Also reproducible in Player