Hi, following the official documentation on how to use type selectors, I have a USS styleSheet changing the appearance of a GridBackground visualEement:
GridBackground
{
--grid-background-color: #222222;
--line-color: #222222;
--thick-line-color: #222222;
--spacing: 20;
}
This class compiles with no errors, but displays no changes in my custom EditorWindow. However, if I add a ‘:’ before ‘GridBackground’, the USS style is applied, even though the console displays a warning:
Unknown pseudo class “GridBackground”
I understand the correct use is ‘GridBackground’, but what I don’t understand is why it is not applied unless I add the ‘:’ . The StyleSheet is properly applied to the VisualElement, so the type selector shouldn’t cause any issue?