* All incorrect, non-lowercase charsets are being now removed.
* Removes stripping @IMPORT declarations.
* 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.
+* 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)
==================
});
// remove invalid special declarations
- replace(/@(?:IMPORT|CHARSET) [^;]+;/g, '');
+ replace(/@charset [^;]+;/ig, function (match) {
+ return match.indexOf('@charset') > -1 ? match : '';
+ });
// whitespace inside attribute selectors brackets
replace(/\[([^\]]+)\]/g, function(match) {
'uppercase charset': [
"@CHARSET 'utf-8';h1{color:red}",
'h1{color:red}'
+ ],
+ 'mixed case charset': [
+ "@chArSET 'utf-8';h1{color:red}",
+ 'h1{color:red}'
]
}, { keepBreaks: true }),
'line breaks and important comments': cssContext({