var addFourValueShorthand = function (prop, components, options) {
options = options || {};
compactable[prop] = {
+ canOverride: options.canOverride,
components: components,
breakUp: options.breakUp || breakUp.fourValues,
defaultValue: options.defaultValue || '0',
if (!left.important && right.important)
continue;
+ component = left.components.filter(nameMatchFilter(right))[0];
+ mayOverride = compactable[right.name].canOverride || canOverride.sameValue;
+ if (!mayOverride(component, right, validator))
+ continue;
+
if (left.important && !right.important) {
right.unused = true;
continue;
[['border', true , false], ['1px'], ['dotted'], ['red']]
]);
}
+ },
+ 'border - hex and rgb colors': {
+ 'topic': 'a{border:1px solid #000;border-color:rgba(255,0,0,.5)}',
+ 'into': function (topic) {
+ assert.deepEqual(_optimize(topic), [
+ [['border', false, false], ['1px'], ['solid'], ['#000']],
+ [['border-color', false, false], ['rgba(255,0,0,.5)']]
+ ]);
+ }
}
})
.addBatch({