Steps to reproduce:
- Create a new Unity project using the Universal 3D template
- Right-click in the Hierarchy > UI Toolkit > Standard Elements >Visual Element
- Add a StyleSheet to the document and create several selectors in it (e.g. "a", "b", "c")
- Select a selector that is not the last in the list and delete it
- Press Ctrl+Z
- Observe the selector's position in the Style Sheets window
Actual results: The selector is restored one row below its original position
Expected results: The selector is restored in its original position
Reproducible with versions: 6000.6.0b2, 6000.6.0b8, 6000.7.0a4
Can’t test with versions: 6000.3.21f1, 6000.5.7f1 (in-scene UI Authoring not available)
Tested on (OS): Windows 11
Notes:
- Only reproduces if the UXML has been saved after the selectors were added; does not reproduce if the document has not been saved
- Does not reproduce in the UI Builder window