That should never happen but skip such properties if ever encountered.
[3.1.1 / 2015-xx-xx](https://github.com/jakubpawlowicz/clean-css/compare/v3.1.0...HEAD)
==================
+* Fixed issue [#469](https://github.com/jakubpawlowicz/clean-css/issues/469) - extracting broken property.
* Fixed issue [#470](https://github.com/jakubpawlowicz/clean-css/issues/470) - negative padding removal.
* Fixed issue [#471](https://github.com/jakubpawlowicz/clean-css/issues/471) - correct order after restructuring.
var splitAt = property.indexOf(':');
var name = property.substring(0, splitAt);
+ if (!name)
+ continue;
+
var nameRoot = findNameRoot(name);
properties.push([
assert.deepEqual(tokens, []);
}
},
+ 'no valid properties': {
+ 'topic': extractor(buildToken('a{:red}')),
+ 'has no properties': function (tokens) {
+ assert.deepEqual(tokens, []);
+ }
+ },
'one property': {
'topic': extractor(buildToken('a{color:red}')),
'has no properties': function (tokens) {