This commit is contained in:
Niklas von Hertzen
2015-01-26 22:55:10 +02:00
parent ed299b3db1
commit 60619dca72
4 changed files with 5 additions and 5 deletions

View File

@@ -121,7 +121,7 @@ NodeContainer.prototype.cssList = function(property, index) {
value = value[index || 0] || value[0] || 'auto';
value = value.trim().split(' ');
if (value.length === 1) {
value = [value[0], value[0]];
value = [value[0], isPercentage(value[0]) ? 'auto' : value[0]];
}
return value;
};