Steps to reproduce:
- Create a new URP project
- In the Hierarchy, right-click and select UI Toolkit > Standard Elements > Visual Element
- Observe UI Viewport and Style Sheets windows open
- In the Style Sheets window, create a new selector (with a new StyleSheet)
- Save (Cmd+S)
- Open the created .uss file in external text editor
- Create a selector with any name
- Save, exit and observe the Selector appears in Style Sheets window
- Drag the selector onto the Visual Element
- Observe the selector is shown next to it and Save (Cmd+S)
- Observe the Visual Element
Actual results: The selector is removed from the Visual Element on save
Expected results: The selector remains applied to the Visual Element after saving
Reproducible with versions: 6000.6.0b1, 6000.7.0a1
Can’t test with versions: 6000.4.12f1, 6000.5.1f1 (uxml editing In Context not available)
Tested on (OS): macOS 26.5