[3.3.4 / 2015-xx-xx](https://github.com/jakubpawlowicz/clean-css/compare/v3.3.3...3.3)
==================
+* Fixed issue [#610](https://github.com/jakubpawlowicz/clean-css/issues/610) - `border:inherit` restoring.
* Fixed issue [#611](https://github.com/jakubpawlowicz/clean-css/issues/611) - edge case in quote stripping.
[3.3.3 / 2015-06-16](https://github.com/jakubpawlowicz/clean-css/compare/v3.3.2...v3.3.3)
};
}
+function _isInheritOnly(values) {
+ for (var i = 0, l = values.length; i < l; i++) {
+ var value = values[i][0];
+
+ if (value != 'inherit')
+ return false;
+ }
+
+ return true;
+}
+
function withoutDefaults(property, compactable) {
var components = property.components;
var restored = [];
if (restored.length === 0)
restored.push([compactable[property.name].defaultValue]);
+ if (_isInheritOnly(restored))
+ return [restored[0]];
+
return restored;
}
'gives right value back': function (restoredValue) {
assert.deepEqual(restoredValue, [['0px'], ['1px'], ['2px'], ['3px'], ['/'], ['0px'], ['1px']]);
}
+ },
+ 'inherit': {
+ 'topic': function () {
+ return _restore(_breakUp([['border'], ['inherit']]));
+ },
+ 'gives right value back': function (restoredValue) {
+ assert.deepEqual(restoredValue, [['inherit']]);
+ }
}
},
'four values': {