report.setErrorCode(ERROR_IS_INHERITED);
report.setPassed(false);
report.addDescriptionEntry(ERROR_IS_INHERITED, "");
}
Parser cssParser = new Parser();
// see if the property supports the value 'inherit'
try {
LexicalUnit lu = cssParser.parsePropertyValue("inherit");
Value v = manager.createValue(lu, null);
String s = v.getCssText();
if (!"inherit".equalsIgnoreCase(s)) {
report.setErrorCode(ERROR_INHERIT_VALUE);
report.setPassed(false);
report.addDescriptionEntry(ERROR_INHERIT_VALUE, "inherit");
}
} catch (Exception ex) {
report.setErrorCode(ERROR_INHERIT_VALUE);
report.setPassed(false);
report.addDescriptionEntry(ERROR_INHERIT_VALUE, ex.getMessage());
}
// test all possible identifiers
if (identValues != null) {
try {
for (int i=0; i < identValues.length; ++i) {
LexicalUnit lu = cssParser.parsePropertyValue(identValues[i]);
Value v = manager.createValue(lu, null);
String s = v.getCssText();
if (!identValues[i].equalsIgnoreCase(s)) {
report.setErrorCode(ERROR_INVALID_VALUE);
report.setPassed(false);