* Fixed issue with tokenizer removing first selector after an unknown @ rule.
* Fixed issue [#329](https://github.com/GoalSmashers/clean-css/issues/329) - font shorthands incorrectly processed.
+* Fixed issue [#332](https://github.com/GoalSmashers/clean-css/issues/332) - background shorthand with colors.
* Refixed issue [#325](https://github.com/GoalSmashers/clean-css/issues/325) - invalid charset declarations.
[2.2.11 / 2014-07-28](https://github.com/GoalSmashers/clean-css/compare/v2.2.10...v2.2.11)
var sizeValue = new Splitter('/').split(currentPart);
size.value = sizeValue.pop();
position.value = sizeValue.pop();
- } else if (validator.isValidColor(currentPart)) {
+ } else if ((color.value == processable[color.prop].defaultValue || color.value == 'none') && validator.isValidColor(currentPart)) {
color.value = currentPart;
} else if (validator.isValidUrl(currentPart) || validator.isValidFunction(currentPart)) {
image.value = currentPart;
'default background components should be removed #2': [
'body{background:transparent none 1px 5px scroll}',
'body{background:1px 5px}'
+ ],
+ 'default background components should be removed #3': [
+ 'body{background:none repeat scroll 0 0 #000}',
+ 'body{background:#000}'
]
}),
'complex granular properties': cssContext({