[3.0.8 / 2015-xx-xx](https://github.com/jakubpawlowicz/clean-css/compare/v3.0.7...v3.0.8)
==================
+* Fixed issue [#447](https://github.com/GoalSmashers/clean-css/issues/447) - `background-color` in shorthands.
* Fixed issue [#450](https://github.com/GoalSmashers/clean-css/issues/450) - name to hex color converting.
[3.0.7 / 2015-01-22](https://github.com/jakubpawlowicz/clean-css/compare/v3.0.6...v3.0.7)
matchingComponent = t.components.filter(nameMatchFilter1)[0];
if (can(matchingComponent.value, token.value)) {
// The component can override the matching component in the shorthand
- var disabledForToken = !compatibility.properties.backgroundSizeMerging &&
- token.prop.indexOf('background-size') > -1;
+ var disabledForToken = !compatibility.properties.backgroundSizeMerging && token.prop.indexOf('background-size') > -1 ||
+ processable[token.prop].nonMergeableValue && processable[token.prop].nonMergeableValue == token.value;
if (disabledForToken) {
result.push(t);
canOverride: canOverride.color,
defaultValue: 'transparent',
multiValueLastOnly: true,
+ nonMergeableValue: 'none',
shortestValue: 'red'
},
'background-image': {
'a{background:0;background-color:inherit}',
'a{background:0;background-color:inherit}'
],
+ 'should NOT merge background with background-color set to none': [
+ 'a{background:url(logo.png)no-repeat center;background-color:none}',
+ 'a{background:url(logo.png)no-repeat center;background-color:none}'
+ ],
'should merge background with background-image': [
'a{background:0;background-image:url(hello_world)}',
'a{background:url(hello_world)0}'