* Fixed issue [#436](https://github.com/jakubpawlowicz/clean-css/issues/436) - refactors URI rewriting.
+[3.2.1 / 2015-xx-xx](https://github.com/jakubpawlowicz/clean-css/compare/v3.2.0...3.2)
+==================
+
+* Fixed issue [#534](https://github.com/jakubpawlowicz/clean-css/issues/534) - wrong `@font-face` stringifying.
+
[3.2.0 / 2015-04-19](https://github.com/jakubpawlowicz/clean-css/compare/v3.1.9...v3.2.0)
==================
var token = tokens[i];
switch (token[0]) {
+ case 'flat-block':
case 'selector':
addToProperties(token[2]);
break;
assert.deepEqual(tokens, [['selector', ['a'], [[['color', true, false], ['red']]] ]]);
}
},
+ 'flat block': {
+ 'topic': [['flat-block', ['@font-face'], [[['font-family'], ['x']]] ]],
+ 'metadata': function (tokens) {
+ addOptimizationMetadata(tokens);
+ assert.deepEqual(tokens, [['flat-block', ['@font-face'], [[['font-family', false, false], ['x']]] ]]);
+ }
+ },
'underscore hack': {
'topic': [['selector', ['a'], [[['_color'], ['red']]] ]],
'metadata': function (tokens) {
'gets right output': function (minified) {
assert.equal(minified.styles, 'a{background:linear-gradient(to bottom,rgba(0,0,0,.1) 0,rgba(0,0,0,.1))}');
}
+ },
+ 'important': {
+ 'topic': function () {
+ return new CleanCSS({ sourceMap: true }).minify('@font-face{font-family:si}a{font-family:si!important}');
+ },
+ 'gets right output': function (minified) {
+ assert.equal(minified.styles, '@font-face{font-family:si}a{font-family:si!important}');
+ }
}
})
.addBatch({