boolean goWithSingle = false;
if (value.getCssValueType() == CSSPrimitiveValue.CSS_INHERIT) {
goWithSingle = true;
} else {
checkIdentType(CSSName.TEXT_DECORATION, value);
IdentValue ident = checkIdent(cssName, value);
if (ident == IdentValue.NONE) {
goWithSingle = true;
}
}
if (goWithSingle) {
return Collections.singletonList(
new PropertyDeclaration(cssName, value, important, origin));
}
}
for (Iterator i = values.iterator(); i.hasNext(); ) {
PropertyValue value = (PropertyValue)i.next();
checkInheritAllowed(value, false);
checkIdentType(cssName, value);
IdentValue ident = checkIdent(cssName, value);
if (ident == IdentValue.NONE) {
throw new CSSParseException("Value none may not be used in this position", -1);
}
checkValidity(cssName, getAllowed(), ident);
}