* @return PropertyValue
*/
public PropertyValue getPropertyValue() {
// Check if the first could actually be a StyleKeyword
final String firstValue = first.getValue();
final EditorPropertyParser parser = new EditorPropertyParser();
PropertyValue value = parser.parsePropertyValue(property,
firstValue, isImportant());
// Ignore the second value if the first is a keyword or inherit.
if (value == null || !(value.getValue() instanceof StyleKeyword ||
value.getValue() instanceof StyleInherit)) {
// If it's not then parse the whole fraction.
value = parser.parsePropertyValue(property,getStringValue(),
isImportant());
}
return value;
}