var MULTIPLEX_SEPARATOR = ',';
var SIZE_POSITION_SEPARATOR = '/';
+function isInheritOnly(values) {
+ for (var i = 0, l = values.length; i < l; i++) {
+ var value = values[i][0];
+
+ if (value != 'inherit' && value != MULTIPLEX_SEPARATOR && value != SIZE_POSITION_SEPARATOR)
+ return false;
+ }
+
+ return true;
+}
+
function background(property, compactable, lastInMultiplex) {
var components = property.components;
var restored = [];
if (restored.length === 0)
restored.push([compactable[property.name].defaultValue]);
- if (_isInheritBackground(restored))
+ if (isInheritOnly(restored))
return [restored[0]];
return restored;
}
-function _isInheritBackground(values) {
- for (var i = 0, l = values.length; i < l; i++) {
- var value = values[i][0];
-
- if (value != 'inherit' && value != MULTIPLEX_SEPARATOR && value != SIZE_POSITION_SEPARATOR)
- return false;
- }
-
- return true;
-}
-
function borderRadius(property, compactable) {
if (property.multiplex) {
var horizontal = shallowClone(property);
};
}
-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))
+ if (isInheritOnly(restored))
return [restored[0]];
return restored;