* Fixed issue [#686](https://github.com/jakubpawlowicz/clean-css/issues/686) - adds rounding precision for all units.
* Fixed issue [#703](https://github.com/jakubpawlowicz/clean-css/issues/703) - changes default IE compatibility to 10+.
* Fixed issue [#739](https://github.com/jakubpawlowicz/clean-css/issues/739) - error when a closing brace is missing.
+* Fixed issue [#750](https://github.com/jakubpawlowicz/clean-css/issues/750) - allows `width` overriding.
* Fixed issue [#756](https://github.com/jakubpawlowicz/clean-css/issues/756) - adds disabling font-weight optimizations.
* Fixed issue [#758](https://github.com/jakubpawlowicz/clean-css/issues/758) - ignores rules with empty selector.
* Fixed issue [#767](https://github.com/jakubpawlowicz/clean-css/issues/767) - disables remote `@import` inlining by default.
}
}
})
+ .addBatch({
+ 'one unit value': {
+ 'topic': function () {
+ return _optimize('a{width:3px;width:4px}');
+ },
+ 'into': function (properties) {
+ assert.deepEqual(properties, [
+ [
+ 'property',
+ ['property-name', 'width', [[1, 12, undefined]]],
+ ['property-value', '4px', [[1, 18, undefined]]]
+ ]
+ ]);
+ }
+ },
+ 'incompatible unit values': {
+ 'topic': function () {
+ return _optimize('a{width:4px;width:calc(5rem / 2)}');
+ },
+ 'into': function (properties) {
+ assert.deepEqual(properties, [
+ [
+ 'property',
+ ['property-name', 'width', [[1, 2, undefined]]],
+ ['property-value', '4px', [[1, 8, undefined]]]
+ ],
+ [
+ 'property',
+ ['property-name', 'width', [[1, 12, undefined]]],
+ ['property-value', 'calc(5rem / 2)', [[1, 18, undefined]]]
+ ]
+ ]);
+ }
+ }
+ })
.export(module);