This commit is contained in:
MoyuScript
2015-01-26 22:55:10 +02:00
parent ea26904b94
commit 790e395bca
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;
};