checkIdentLengthOrPercentType(cssName, second);
if (first.getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT) {
IdentValue firstIdent = checkIdent(cssName, first);
if (firstIdent != IdentValue.AUTO) {
throw new CSSParseException("The only ident value allowed here is 'auto'", -1);
}
} else if (((PropertyValue)first).getFloatValue() < 0.0f) {
throw new CSSParseException(cssName + " values cannot be negative", -1);
}
if (second.getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT) {
IdentValue secondIdent = checkIdent(cssName, second);
if (secondIdent != IdentValue.AUTO) {
throw new CSSParseException("The only ident value allowed here is 'auto'", -1);
}
} else if (((PropertyValue)second).getFloatValue() < 0.0f) {
throw new CSSParseException(cssName + " values cannot be negative", -1);
}
return createTwoValueResponse(CSSName.BACKGROUND_SIZE, first, second, origin, important);
}
}