result = (Color)borderColor.getSideColor(i).fromCSS();
}
if (result == null) {
if (foreground == null) {
ColorProperty cp =
(ColorProperty)attr.getAttribute(CSS.Attribute.COLOR);
foreground = cp != null ? cp.getColor() : Color.BLACK;
}
result = foreground;
}
return result;
}