* @param unit
* @return
*/
public Map createValues(LexicalUnit unit)
{
final CSSValue topColor = ColorReadHandler.createColorValue(unit);
if (topColor == null)
{
return null;
}
unit = unit.getNextLexicalUnit();
final CSSValue rightColor;
if (unit == null)
{
rightColor = topColor;
}
else
{
rightColor = ColorReadHandler.createColorValue(unit);
if (rightColor == null)
{
return null;
}
unit = unit.getNextLexicalUnit();
}
final CSSValue bottomColor;
if (unit == null)
{
bottomColor = topColor;
}
else
{
bottomColor = ColorReadHandler.createColorValue(unit);
if (bottomColor == null)
{
return null;
}
unit = unit.getNextLexicalUnit();
}
final CSSValue leftColor;
if (unit == null)
{
leftColor = rightColor;
}
else