Validating CSS Stylesheets

Oxygen XML Author plugin includes a built-in CSS validator integrated with the general validation support, bringing the usual validation features to CSS stylesheets.

The CSS properties accepted by the validator are the ones included in the current CSS profile that is selected in the CSS validation preferences. The profile CSS 3 with Oxygen extensions includes all the CSS 3 standard properties and the CSS extensions specific for Oxygen that can be used in Author mode. That means all Oxygen specific extensions are accepted in a CSS stylesheet by the built-in CSS validator when this profile is selected.

You can add custom CSS properties with a file called customProperties.xml located in the folder [Oxygen-install-folder]/endorsed/builtin/css-validator. The custom properties and their values are accepted by the CSS validator and are listed in the content completion window when editing a CSS stylesheet. For example the custom property called custom with the possible values customValue1 and customValue2 is specified with the following configuration file customProperties.xml:
<?xml version="1.0" encoding="UTF-8"?>
<css_keywords>
    <property name="custom">
        <summary>Description for custom property.</summary>
        <value name="customValue1"/>
        <value name="customValue2"/>
    </property>
</css_keywords>