{
ArrayList values = new ArrayList();
while (value != null)
{
CSSValue firstValue;
if (value.getLexicalUnitType() == LexicalUnit.SAC_IDENT)
{
if (value.getStringValue().equalsIgnoreCase("round"))
{
values.add(createList(CSSAutoValue.getInstance(),
CSSAutoValue.getInstance(),
BackgroundSize.ROUND));
value = CSSValueFactory.parseComma(value);
continue;
}
if (value.getStringValue().equalsIgnoreCase("auto"))
{
firstValue = CSSAutoValue.getInstance();
}
else
{
return null;
}
}
else if (value.getLexicalUnitType() == LexicalUnit.SAC_PERCENTAGE)
{
firstValue = CSSNumericValue.createValue(CSSNumericType.PERCENTAGE, value.getFloatValue());
}
else
{
firstValue = CSSValueFactory.createLengthValue(value);
if (firstValue == null)
{
return null;
}
}
value = value.getNextLexicalUnit();
if (value == null)
{
values.add(createList(firstValue,
CSSAutoValue.getInstance(),
BackgroundSize.ROUND));
continue;
}
CSSValue secondValue;
if (value.getLexicalUnitType() == LexicalUnit.SAC_IDENT)
{
if (value.getStringValue().equalsIgnoreCase("round"))
{
values.add(createList(firstValue,