if (family instanceof CSSValueList) {
CSSValueList list = (CSSValueList) family;
int len = list.getSeparator() == ',' ? list.length() : 1;
String[] result = new String[len];
for (int i = 0; i < len; i++) {
CSSValue v = list.getSeparator() == ',' ? list.item(i) : list;
result[i] = v.toString();
}
return result;
} else if ((family instanceof CSSQuotedString) || (family instanceof CSSName)) {
String[] result = { family.toString() };
return result;