CSS Validation of Custom CSS Properties
Posted: Thu Oct 20, 2022 5:41 am
When editing a CSS file, it seems that I get an error when trying to use a custom CSS property inside a color function. Custom properties appear to be validating fine elsewhere, but the following produces a validation error:
It gives the following error message:
"Invalid RGB function : )
Context: body in property: background-color"
This CSS construct displays properly in the browser, and works as expected in the end product. Can anyone tell me why the CSS validator in OxygenXML would give this error?
For the record, I am using XML Editor 24.1, build 2022030807, and I have the CSS Validator Preferences set to "Profile: CSS 3 with Oxygen Extensions"
Code: Select all
background-color: hsl(0, 75%, var(--DarkTheme));
"Invalid RGB function : )
Context: body in property: background-color"
This CSS construct displays properly in the browser, and works as expected in the end product. Can anyone tell me why the CSS validator in OxygenXML would give this error?
For the record, I am using XML Editor 24.1, build 2022030807, and I have the CSS Validator Preferences set to "Profile: CSS 3 with Oxygen Extensions"