Article - CS284203
Custom CSS lint is throwing error and warning on valid CSS in ThingWorx New Composer
Modified: 24-Sep-2024
Applies To
- ThingWorx Platform 8.0 to 9.6
Description
- Custom CSS Linting throws error when saving Mashup on ThingWorx Composer
-
CSS contains errors.
-
- CSS lint in Custom CSS throws "Syntax error" on following valid CSS code
:root {
--main-bg-color: brown;
}
- However, when using following older syntax, as shown below, there's no error
:root {
var-main-bg-color: brown;
}
- There's linting warning "Disallow !important" on following valid code
body {
background-color: yellow !important;
}
This is a printer-friendly version of Article 284203 and may be out of date. For the latest version click CS284203