* Fixed issue [#685](https://github.com/jakubpawlowicz/clean-css/issues/685) - adds lowercasing hex colors optimization.
* 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 [#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.
function optimizeBody(properties, context) {
var options = context.options;
- var property, name, value;
+ var property, name, type, value;
var valueIsUrl;
var propertyToken;
var _properties = wrapForOptimizing(properties);
}
for (var j = 0, m = property.value.length; j < m; j++) {
+ type = property.value[j][0];
value = property.value[j][1];
valueIsUrl = isUrl(value);
+ if (type == Token.PROPERTY_BLOCK) {
+ property.unused = true;
+ context.warnings.push('Invalid value token at ' + formatPosition(value[0][1][2][0]) + '. Ignoring.');
+ break;
+ }
+
if (valueIsUrl && !context.validator.isValidUrl(value)) {
property.unused = true;
context.warnings.push('Broken URL \'' + value + '\' at ' + formatPosition(property.value[j][2][0]) + '. Ignoring.');
'invalid characters #3 - relation at the beginning': [
'>.funky{background:red}',
''
+ ],
+ 'missing semicolon and brace in the middle': [
+ 'body{color:red a{color:blue;}',
+ ''
]
}, { advanced: false })
)
]
]
],
+ 'missing end brace and semicolon in the middle': [
+ 'body{color:red a{color:blue;}',
+ [
+ [
+ 'rule',
+ [
+ [
+ 'rule-scope',
+ 'body',
+ [
+ [1, 0, undefined]
+ ]
+ ]
+ ],
+ [
+ [
+ 'property',
+ [
+ 'property-name',
+ 'color',
+ [
+ [1, 5, undefined]
+ ]
+ ],
+ [
+ 'property-value',
+ 'red',
+ [
+ [1, 11, undefined]
+ ]
+ ],
+ [
+ 'property-block',
+ [
+ [
+ 'property',
+ [
+ 'property-name',
+ 'acolor',
+ [
+ [1, 15, undefined]
+ ]
+ ],
+ [
+ 'property-value',
+ 'blue',
+ [
+ [1, 23, undefined]
+ ]
+
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ],
'extra end brace in the middle': [
'body{color:red}}a{color:blue;}',
[