+[2.2.10 / 2014-xx-xx](https://github.com/GoalSmashers/clean-css/compare/v2.2.9...v2.2.10)
+==================
+
+* Fixed issue [#325](https://github.com/GoalSmashers/clean-css/issues/325) - removing invalid @charset declarations.
+
[2.2.9 / 2014-07-23](https://github.com/GoalSmashers/clean-css/compare/v2.2.8...v2.2.9)
==================
data = urlsProcessor.escape(data);
});
+ // remove invalid special declarations
+ replace(/@(?:IMPORT|CHARSET) [^;]+;/g, '');
+
// whitespace inside attribute selectors brackets
replace(/\[([^\]]+)\]/g, function(match) {
return match.replace(/\s/g, '');
'charset with double line break': [
"@charset 'utf-8';" + lineBreak + lineBreak + "a{display:block}",
"@charset 'utf-8';" + lineBreak + "a{display:block}"
+ ],
+ 'uppercase charset': [
+ "@CHARSET 'utf-8';h1{color:red}",
+ 'h1{color:red}'
]
}, { keepBreaks: true }),
'line breaks and important comments': cssContext({