Search Issue Tracker
Fixed
Votes
0
Found in
2020.2
2020.2.1f1
2021.1
2021.2
Issue ID
1312500
Regression
No
USS file parsing stops when it encounters an unknown CSS parameter
Reproduction steps:
1. Open attached project "1312500.zip"
2. Open "TestStyleSheet.uss" from the Assets folder in any code editor (e.g. Visual Studio)
3. Notice how the 7th line has the "color" parameter set to red and is centered in middle with other properties
4. Open "TestWindow.uxml" from the Assets folder (UI Builder package is required to view this window)
5. Notice how all style parameters set in "TestStyleSheet.uss" work
6. Open "TestStyleSheet.uss" again and add an additional parameter "font-weight: bold;" right above "color" parameter
7. Save the file and look at "TestWindow.xuml" again
Expected result: Font weight is not set, because it's not used in Unity UI Toolkit, but the color is still set to red
Actual result: Font weight is not set as expected, but color also doesn't get set because USS parsing stops
Reproducible with: 1.0.0-preview.11 (2020.2.6f1, 2021.1.0b8, 2021.2.0a6), 1.0.0-preview.13 (2020.2.1f1, 2020.2.6f1, 2021.1.0b8, 2021.2.0a6), 1.0.0-preview.14 (2020.2.6f1, 2021.1.0b8, 2021.2.0a6)
Couldn't test with: 2018.4, 2019.4 (UI Toolkit is not available)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Resolution Note:
Fixed in 2021.2.0a15